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

@@ -93,6 +93,11 @@ public class ControlGainEffect extends SpellAbilityEffect {
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
if (lose != null && lose.contains("LeavesPlay") && !source.isInZone(ZoneType.Battlefield)) {
return;