mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- fixed a null pointer in ForetellAbility
This commit is contained in:
parent
9f87839ca6
commit
432f9f5a67
1 changed files with 2 additions and 1 deletions
|
@ -256,7 +256,8 @@ class ForetellCostAbility extends StaticAbility implements AlternativeSourceCost
|
|||
@Override
|
||||
public boolean isAvailable(Ability source, Game game) {
|
||||
Card card = game.getCard(source.getSourceId());
|
||||
if (card != null) {
|
||||
if (card != null
|
||||
&& game.getState().getValue(card.getId().toString()) != null) {
|
||||
return Zone.STACK == game.getState().getZone(card.getId())
|
||||
&& ((int) game.getState().getValue(card.getId().toString()
|
||||
+ "Foretell Turn Number") != game.getTurnNum());
|
||||
|
|
Loading…
Reference in a new issue