mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fix for Baron triggering on playing Morph creatures
This commit is contained in:
parent
c6d27bb3c9
commit
6a23a0f707
1 changed files with 11 additions and 9 deletions
|
@ -157,6 +157,7 @@ class BaronVonCountTriggeredAbility extends TriggeredAbilityImpl {
|
|||
}
|
||||
Integer doomNumber = (Integer) game.getState().getValue(mageObject.getId() + "_doom");
|
||||
if (spell != null && sourcePermanent != null && mageObject != null && doomNumber > 0) {
|
||||
if (!spell.isFaceDown(game)) {
|
||||
String doomString = doomNumber.toString();
|
||||
if (spell.getCard().getManaCost().getText().contains(doomString)
|
||||
|| String.valueOf(spell.getPower().getBaseValue()).contains(doomString)
|
||||
|
@ -171,6 +172,7 @@ class BaronVonCountTriggeredAbility extends TriggeredAbilityImpl {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue