mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Ghostly Flicker - Reworked effect code again.
This commit is contained in:
parent
94684baf3c
commit
98dd8c9d1a
1 changed files with 1 additions and 2 deletions
|
@ -100,7 +100,6 @@ class GhostlyFlickerEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
MageObject sourceObject = source.getSourceObject(game);
|
||||
if (controller != null && sourceObject != null) {
|
||||
UUID exileId = UUID.randomUUID();
|
||||
Set<Card> toExile = new HashSet<>();
|
||||
for (UUID permanentId : targetPointer.getTargets(game, source)) {
|
||||
Permanent target = game.getPermanent(permanentId);
|
||||
|
@ -108,7 +107,7 @@ class GhostlyFlickerEffect extends OneShotEffect {
|
|||
toExile.add(target);
|
||||
}
|
||||
}
|
||||
controller.moveCardsToExile(toExile, source, game, true, exileId, sourceObject.getIdName());
|
||||
controller.moveCards(toExile, Zone.EXILED, source, game);
|
||||
game.applyEffects();
|
||||
Set<Card> toBattlefield = new HashSet<>();
|
||||
for (Card card : toExile) {
|
||||
|
|
Loading…
Reference in a new issue