* Karador Ghost Chieftain - Fixed possible null pointer exception.

This commit is contained in:
LevelX2 2017-08-22 15:31:58 +02:00
parent 1a4d6ea547
commit aa01ec979c

View file

@ -137,7 +137,7 @@ class KaradorGhostChieftainContinuousEffect extends ContinuousEffectImpl {
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
if (!game.getActivePlayerId().equals(player.getId())) {
if (game.getActivePlayerId() == null || !game.getActivePlayerId().equals(player.getId())) {
return false;
}
for (Card card : player.getGraveyard().getCards(new FilterCreatureCard(), game)) {