mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed Sleeper Agent.
This commit is contained in:
@@ -91,6 +91,8 @@ public class ControlGainEffect extends SpellEffect {
|
||||
if (sa.hasParam("AllValid")) {
|
||||
tgtCards = Singletons.getModel().getGame().getCardsIn(ZoneType.Battlefield);
|
||||
tgtCards = AbilityFactory.filterListByType(tgtCards, sa.getParam("AllValid"), sa);
|
||||
} else if (sa.hasParam("Defined")) {
|
||||
tgtCards = AbilityFactory.getDefinedCards(source, sa.getParam("Defined"), sa);
|
||||
} else {
|
||||
tgtCards = getTargetCards(sa);
|
||||
}
|
||||
@@ -99,7 +101,7 @@ public class ControlGainEffect extends SpellEffect {
|
||||
|
||||
if (sa.hasParam("NewController")) {
|
||||
controllers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), sa.getParam("NewController"), sa);
|
||||
} else if ((tgt != null) && (tgt.getTargetPlayers() != null) && tgt.canTgtPlayer()) {
|
||||
} else if (tgt != null && tgt.getTargetPlayers() != null && tgt.canTgtPlayer()) {
|
||||
controllers = tgt.getTargetPlayers();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user