mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08: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…
Add table
Add a link
Reference in a new issue