* Ghostly Flicker - Reworked effect code again.

This commit is contained in:
LevelX2 2017-01-14 00:00:42 +01:00
parent 8f059ee71a
commit 94684baf3c
2 changed files with 11 additions and 1 deletions

View file

@ -110,7 +110,14 @@ class GhostlyFlickerEffect extends OneShotEffect {
}
controller.moveCardsToExile(toExile, source, game, true, exileId, sourceObject.getIdName());
game.applyEffects();
controller.moveCards(game.getExile().getExileZone(exileId).getCards(game), Zone.BATTLEFIELD, source, game);
Set<Card> toBattlefield = new HashSet<>();
for (Card card : toExile) {
Zone currentZone = game.getState().getZone(card.getId());
if (!Zone.BATTLEFIELD.equals(currentZone) && Zone.isPublicZone(currentZone)) {
toBattlefield.add(game.getCard(card.getId()));
}
}
controller.moveCards(toBattlefield, Zone.BATTLEFIELD, source, game);
return true;
}
return false;