mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue