From 01bd43f544840c313fe81bbf9dbf72417116dced Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Tue, 27 Oct 2020 18:19:09 -0500 Subject: [PATCH] Fix Light up the Stage and Escape to the Wilds not being able to cast adventures --- Mage.Sets/src/mage/cards/e/EscapeToTheWilds.java | 4 +++- Mage.Sets/src/mage/cards/l/LightUpTheStage.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/e/EscapeToTheWilds.java b/Mage.Sets/src/mage/cards/e/EscapeToTheWilds.java index 0c36bdd097..7b42487b16 100644 --- a/Mage.Sets/src/mage/cards/e/EscapeToTheWilds.java +++ b/Mage.Sets/src/mage/cards/e/EscapeToTheWilds.java @@ -10,6 +10,7 @@ import mage.constants.*; import mage.game.Game; import mage.players.Player; import mage.target.targetpointer.FixedTarget; +import mage.util.CardUtil; import java.util.UUID; @@ -113,7 +114,8 @@ class EscapeToTheWildsMayPlayEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) { + UUID objectIdToCast = CardUtil.getMainCardId(game, sourceId); return source.isControlledBy(affectedControllerId) - && getTargetPointer().getTargets(game, source).contains(sourceId); + && getTargetPointer().getTargets(game, source).contains(objectIdToCast); } } diff --git a/Mage.Sets/src/mage/cards/l/LightUpTheStage.java b/Mage.Sets/src/mage/cards/l/LightUpTheStage.java index 21aa8ff2b4..c27c4d35ee 100644 --- a/Mage.Sets/src/mage/cards/l/LightUpTheStage.java +++ b/Mage.Sets/src/mage/cards/l/LightUpTheStage.java @@ -119,7 +119,8 @@ class LightUpTheStageMayPlayEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) { + UUID objectIdToCast = CardUtil.getMainCardId(game, sourceId); return source.isControlledBy(affectedControllerId) - && getTargetPointer().getTargets(game, source).contains(sourceId); + && getTargetPointer().getTargets(game, source).contains(objectIdToCast); } }