mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
correct for Source that is LKI (coming from ImmediateTrigger, etc)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user