Added check for if the exiled card's owner is missing.
@@ -156,8 +156,11 @@ class FlickerformReturnEffect extends OneShotEffect {
}
ExileZone exileZone = game.getExile().getExileZone(exileZoneId);
Card enchantedCard = exileZone.get(enchantedCardId, game);
- Player owner = game.getPlayer(enchantedCard.getOwnerId());
+ //skip if exiled card is missing
if (enchantedCard != null) {
+ Player owner = game.getPlayer(enchantedCard.getOwnerId());
+ //skip if card's owner is missing
+ if (owner != null) {
owner.moveCards(enchantedCard, Zone.BATTLEFIELD, source, game);
Permanent newPermanent = game.getPermanent(enchantedCardId);
if (newPermanent != null) {
@@ -191,6 +194,7 @@ class FlickerformReturnEffect extends OneShotEffect {
}
return true;
}
+ }
return false;
}
}
