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