Account for player being null in Mortal Combat graveyard creature count

check.
This commit is contained in:
daagar 2015-02-15 16:30:49 -06:00
parent 81ffd9d87f
commit a30b34f976

View file

@ -75,6 +75,6 @@ class TwentyGraveyardCreatureCondition implements Condition {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId()); Player player = game.getPlayer(source.getControllerId());
return player.getGraveyard().count(filter, game) >= 20; return player != null && player.getGraveyard().count(filter, game) >= 20;
} }
} }