mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed Chandra's Embercat mana not casting Chandra planeswalkers
This commit is contained in:
parent
14c4981c72
commit
4b0458866b
1 changed files with 8 additions and 7 deletions
|
@ -64,14 +64,15 @@ class ChandrasEmbercatManaCondition extends CreatureCastManaCondition {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
if (super.apply(game, source)) {
|
if (!super.apply(game, source)) {
|
||||||
MageObject object = game.getObject(source.getSourceId());
|
return false;
|
||||||
if (object != null && object.hasSubtype(SubType.ELEMENTAL, game)
|
|
||||||
|| (object.hasSubtype(SubType.CHANDRA, game) && object.isPlaneswalker())) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue