From 179bf79118a1eee3547ee0420a612fb33271e2f8 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Mon, 8 Feb 2021 11:01:37 -0600 Subject: [PATCH] [SOI] Essence Flux - Fixed interaction with MDFCs --- Mage.Sets/src/mage/cards/e/EssenceFlux.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/e/EssenceFlux.java b/Mage.Sets/src/mage/cards/e/EssenceFlux.java index ecff30843a..517cd8a7cf 100644 --- a/Mage.Sets/src/mage/cards/e/EssenceFlux.java +++ b/Mage.Sets/src/mage/cards/e/EssenceFlux.java @@ -16,6 +16,7 @@ import mage.game.permanent.Permanent; import mage.players.Player; import mage.target.common.TargetControlledCreaturePermanent; import mage.target.targetpointer.FixedTarget; +import mage.util.CardUtil; import java.util.UUID; @@ -65,8 +66,9 @@ class EssenceFluxEffect extends OneShotEffect { if (controller != null) { Cards cardsToBattlefield = new CardsImpl(); for (UUID targetId : this.getTargetPointer().getTargets(game, source)) { - if (game.getExile().containsId(targetId, game)) { - cardsToBattlefield.add(targetId); + UUID mainCardId = CardUtil.getMainCardId(game, targetId); + if (game.getExile().containsId(mainCardId, game)) { + cardsToBattlefield.add(mainCardId); } else { Card card = game.getCard(targetId); if (card instanceof MeldCard) {