correct for Source that is LKI (coming from ImmediateTrigger, etc)

This commit is contained in:
Northmoc
2021-07-16 09:45:48 -04:00
parent 26364aaf3f
commit 77a73c04a4

View File

@@ -91,7 +91,12 @@ public class ControlGainEffect extends SpellAbilityEffect {
if (sa.hasParam("ControlledByTarget")) { if (sa.hasParam("ControlledByTarget")) {
tgtCards = CardLists.filterControlledBy(tgtCards, getTargetPlayers(sa)); tgtCards = CardLists.filterControlledBy(tgtCards, getTargetPlayers(sa));
} }
// in case source was LKI or still resolving
if (source.isLKI() || source.getZone().is(ZoneType.Stack)) {
source = game.getCardState(source);
}
// check for lose control criteria right away // check for lose control criteria right away
if (lose != null && lose.contains("LeavesPlay") && !source.isInZone(ZoneType.Battlefield)) { if (lose != null && lose.contains("LeavesPlay") && !source.isInZone(ZoneType.Battlefield)) {