mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
Changes to first trigger
This commit is contained in:
parent
0ec629d6e5
commit
4e34b0d1d3
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ class BaronVonCountTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Integer doomNumber = (Integer) game.getState().getValue(mageObject.getId() + "_doom");
|
Integer doomNumber = (Integer) game.getState().getValue(mageObject.getId() + "_doom");
|
||||||
if (spell != null && sourcePermanent != null && mageObject != null) {
|
if (spell != null && sourcePermanent != null && mageObject != null && doomNumber > 0) {
|
||||||
String doomString = doomNumber.toString();
|
String doomString = doomNumber.toString();
|
||||||
if (spell.getCard().getManaCost().getText().contains(doomString)
|
if (spell.getCard().getManaCost().getText().contains(doomString)
|
||||||
|| String.valueOf(spell.getPower().getBaseValue()).contains(doomString)
|
|| String.valueOf(spell.getPower().getBaseValue()).contains(doomString)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue