forked from External/mage
* Added test.
This commit is contained in:
parent
2a3e38f845
commit
067b72dcce
2 changed files with 48 additions and 4 deletions
|
|
@ -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<>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue