mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
* Ghostly Flicker - Reworked effect code again.
This commit is contained in:
parent
8f059ee71a
commit
94684baf3c
2 changed files with 11 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue