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:
@@ -4,7 +4,7 @@ Types:Creature Minion
|
|||||||
Text:no text
|
Text:no text
|
||||||
PT:3/3
|
PT:3/3
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGainControl | TriggerDescription$ When CARDNAME enters the battlefield, target opponent gains control of it.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGainControl | TriggerDescription$ When CARDNAME enters the battlefield, target opponent gains control of it.
|
||||||
SVar:TrigGainControl:AB$GainControl | Cost$ 0 | Defined$ Self | ValidTgts$ Opponent | TgtPrompt$ Select target opponent
|
SVar:TrigGainControl:AB$ GainControl | Cost$ 0 | Defined$ Self | ValidTgts$ Opponent | TgtPrompt$ Select target opponent
|
||||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of your upkeep, CARDNAME deals 2 damage to you.
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of your upkeep, CARDNAME deals 2 damage to you.
|
||||||
SVar:TrigDamage:DB$ DealDamage | Defined$ You | NumDmg$ 2
|
SVar:TrigDamage:DB$ DealDamage | Defined$ You | NumDmg$ 2
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ public class ControlGainEffect extends SpellEffect {
|
|||||||
if (sa.hasParam("AllValid")) {
|
if (sa.hasParam("AllValid")) {
|
||||||
tgtCards = Singletons.getModel().getGame().getCardsIn(ZoneType.Battlefield);
|
tgtCards = Singletons.getModel().getGame().getCardsIn(ZoneType.Battlefield);
|
||||||
tgtCards = AbilityFactory.filterListByType(tgtCards, sa.getParam("AllValid"), sa);
|
tgtCards = AbilityFactory.filterListByType(tgtCards, sa.getParam("AllValid"), sa);
|
||||||
|
} else if (sa.hasParam("Defined")) {
|
||||||
|
tgtCards = AbilityFactory.getDefinedCards(source, sa.getParam("Defined"), sa);
|
||||||
} else {
|
} else {
|
||||||
tgtCards = getTargetCards(sa);
|
tgtCards = getTargetCards(sa);
|
||||||
}
|
}
|
||||||
@@ -99,7 +101,7 @@ public class ControlGainEffect extends SpellEffect {
|
|||||||
|
|
||||||
if (sa.hasParam("NewController")) {
|
if (sa.hasParam("NewController")) {
|
||||||
controllers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), sa.getParam("NewController"), sa);
|
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();
|
controllers = tgt.getTargetPlayers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user