mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Account for player being null in Mortal Combat graveyard creature count
check.
This commit is contained in:
parent
81ffd9d87f
commit
a30b34f976
1 changed files with 1 additions and 1 deletions
|
@ -75,6 +75,6 @@ class TwentyGraveyardCreatureCondition implements Condition {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
return player.getGraveyard().count(filter, game) >= 20;
|
||||
return player != null && player.getGraveyard().count(filter, game) >= 20;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue