From fbb1da433a74bb27873bfdf6b385c783493fc966 Mon Sep 17 00:00:00 2001 From: Alex Vasile <48962821+Alex-Vasile@users.noreply.github.com> Date: Tue, 10 May 2022 12:25:05 -0600 Subject: [PATCH] Fixes Soulfire Eruption not handling MDFCs --- Mage.Sets/src/mage/cards/s/SoulfireEruption.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mage.Sets/src/mage/cards/s/SoulfireEruption.java b/Mage.Sets/src/mage/cards/s/SoulfireEruption.java index 9b04b7aee81..f9df35d37e4 100644 --- a/Mage.Sets/src/mage/cards/s/SoulfireEruption.java +++ b/Mage.Sets/src/mage/cards/s/SoulfireEruption.java @@ -13,6 +13,7 @@ import mage.players.Player; import mage.target.Target; import mage.target.common.TargetAnyTarget; import mage.target.targetpointer.FixedTarget; +import mage.util.CardUtil; import java.util.Collection; import java.util.UUID; @@ -119,6 +120,7 @@ class SoulfireEruptionCastEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { + objectId = CardUtil.getMainCardId(game, objectId); // for split cards return source.isControlledBy(affectedControllerId) && objectId.equals(getTargetPointer().getFirst(game, source)); }