mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted the upkeep ability of Sleeper Agent to script.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
Name:Sleeper Agent
|
||||
ManaCost:B
|
||||
Types:Creature Minion
|
||||
Text:When CARDNAME enters the battlefield, target opponent gains control of it.\r\nAt the beginning of your upkeep, CARDNAME deals 2 damage to you.
|
||||
Text:When CARDNAME enters the battlefield, target opponent gains control of it.
|
||||
PT:3/3
|
||||
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:RemAIDeck:True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/sleeper_agent.jpg
|
||||
|
||||
@@ -111,8 +111,6 @@ public class Upkeep implements java.io.Serializable {
|
||||
upkeep_Winnower_Patrol();
|
||||
upkeep_Wolf_Skull_Shaman();
|
||||
|
||||
upkeep_Sleeper_Agent();
|
||||
|
||||
// upkeep_Dragon_Broodmother(); //put this before bitterblossom and mycoloth, so that they will resolve FIRST
|
||||
|
||||
//Win / Lose
|
||||
@@ -2519,31 +2517,6 @@ public class Upkeep implements java.io.Serializable {
|
||||
} // if
|
||||
} // upkeep_Barren_Glory
|
||||
|
||||
/**
|
||||
* <p>upkeep_Sleeper_Agent.</p>
|
||||
*/
|
||||
private static void upkeep_Sleeper_Agent() {
|
||||
final Player player = AllZone.getPhase().getPlayerTurn();
|
||||
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(player, "Sleeper Agent");
|
||||
|
||||
Ability ability;
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
final Card fCard = list.get(i);
|
||||
ability = new Ability(list.get(i), "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
player.addDamage(2, fCard);
|
||||
}
|
||||
};
|
||||
|
||||
ability.setStackDescription("Sleeper Agent deals 2 damage to its controller.");
|
||||
|
||||
AllZone.getStack().addSimultaneousStackEntry(ability);
|
||||
|
||||
}
|
||||
} //upkeep_Sleeper_Agent
|
||||
|
||||
/**
|
||||
* <p>upkeep_Shapeshifter.</p>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user