fixed Chandra's Embercat mana not casting Chandra planeswalkers

This commit is contained in:
Evan Kranzler 2019-07-01 19:53:29 -04:00
parent 14c4981c72
commit 4b0458866b

View file

@ -64,14 +64,15 @@ class ChandrasEmbercatManaCondition extends CreatureCastManaCondition {
@Override
public boolean apply(Game game, Ability source) {
if (super.apply(game, source)) {
MageObject object = game.getObject(source.getSourceId());
if (object != null && object.hasSubtype(SubType.ELEMENTAL, game)
|| (object.hasSubtype(SubType.CHANDRA, game) && object.isPlaneswalker())) {
return true;
}
if (!super.apply(game, source)) {
return false;
}
return false;
MageObject object = game.getObject(source.getSourceId());
if (object == null) {
return false;
}
return object.hasSubtype(SubType.ELEMENTAL, game)
|| (object.hasSubtype(SubType.CHANDRA, game) && object.isPlaneswalker());
}
}