mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[SOI] Essence Flux - Fixed interaction with MDFCs
This commit is contained in:
parent
0d0d14856a
commit
179bf79118
1 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@ import mage.game.permanent.Permanent;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetControlledCreaturePermanent;
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -65,8 +66,9 @@ class EssenceFluxEffect extends OneShotEffect {
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
Cards cardsToBattlefield = new CardsImpl();
|
Cards cardsToBattlefield = new CardsImpl();
|
||||||
for (UUID targetId : this.getTargetPointer().getTargets(game, source)) {
|
for (UUID targetId : this.getTargetPointer().getTargets(game, source)) {
|
||||||
if (game.getExile().containsId(targetId, game)) {
|
UUID mainCardId = CardUtil.getMainCardId(game, targetId);
|
||||||
cardsToBattlefield.add(targetId);
|
if (game.getExile().containsId(mainCardId, game)) {
|
||||||
|
cardsToBattlefield.add(mainCardId);
|
||||||
} else {
|
} else {
|
||||||
Card card = game.getCard(targetId);
|
Card card = game.getCard(targetId);
|
||||||
if (card instanceof MeldCard) {
|
if (card instanceof MeldCard) {
|
||||||
|
|
Loading…
Reference in a new issue