mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
fixed all triggers and abilities of card
This commit is contained in:
parent
21ee7c9607
commit
9097ffbfc3
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ class TeferisMoatRestrictionEffect extends RestrictionEffect {
|
|||
ObjectColor chosenColor = (ObjectColor) game.getState().getValue(source.getSourceId() + "_color");
|
||||
if (chosenColor == null)
|
||||
return false;
|
||||
return permanent.getCardType().contains(CardType.CREATURE) && !permanent.getAbilities().contains(FlyingAbility.getInstance()) && !permanent.getColor(game).shares(chosenColor);
|
||||
boolean creature = permanent.getCardType().contains(CardType.CREATURE);
|
||||
boolean flying = permanent.getAbilities().contains(FlyingAbility.getInstance());
|
||||
boolean sharesColor = permanent.getColor(game).shares(chosenColor);
|
||||
|
||||
return creature && !flying && sharesColor;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue