Skip to content

Commit

Permalink
fixed Chandra's Embercat mana not casting Chandra planeswalkers
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Jul 1, 2019
1 parent 14c4981 commit 4b04588
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Mage.Sets/src/mage/cards/c/ChandrasEmbercat.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 4b04588

Please sign in to comment.