forked from External/mage
Null safety fix
This commit is contained in:
parent
bc2460627e
commit
67415e75e6
2 changed files with 2 additions and 2 deletions
|
|
@ -111,6 +111,6 @@ enum LordOfTheForsakenManaCondition implements Condition {
|
|||
return ((Spell) object).getFromZone() == Zone.GRAVEYARD;
|
||||
}
|
||||
// checking mana without real cast
|
||||
return game.inCheckPlayableState() && game.getState().getZone(object.getId()) == Zone.GRAVEYARD;
|
||||
return game.inCheckPlayableState() && game.getState().getZone(source.getSourceId()) == Zone.GRAVEYARD;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,6 @@ enum RootcoilCreeperManaCondition implements Condition {
|
|||
return ((Spell) object).getFromZone() == Zone.GRAVEYARD;
|
||||
}
|
||||
// checking mana without real cast
|
||||
return game.inCheckPlayableState() && game.getState().getZone(object.getId()) == Zone.GRAVEYARD;
|
||||
return game.inCheckPlayableState() && game.getState().getZone(source.getSourceId()) == Zone.GRAVEYARD;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue