* Added test.

This commit is contained in:
LevelX2 2017-02-03 21:36:33 +01:00
parent 2a3e38f845
commit 067b72dcce
2 changed files with 48 additions and 4 deletions

View file

@ -275,7 +275,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
@Override
public Abilities<Ability> getAbilities(Game game) {
Abilities<Ability> otherAbilities = game.getState().getAllOtherAbilities(objectId);
if (otherAbilities == null) {
if (otherAbilities == null || otherAbilities.isEmpty()) {
return abilities;
}
Abilities<Ability> all = new AbilitiesImpl<>();