- Converted the upkeep ability of Sleeper Agent to script.

This commit is contained in:
Sloth
2011-09-17 17:15:43 +00:00
parent d6ae2dd29e
commit fba5803f2a
2 changed files with 3 additions and 28 deletions

View File

@@ -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

View File

@@ -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>
*/