- Converted Yawgmoth Demon to script.

This commit is contained in:
Sloth
2012-06-21 18:22:36 +00:00
parent 7f22ef535a
commit 1f525dad0d
2 changed files with 12 additions and 7 deletions

View File

@@ -1,10 +1,16 @@
Name:Yawgmoth Demon Name:Yawgmoth Demon
ManaCost:4 B B ManaCost:4 B B
Types:Creature Demon Types:Creature Demon
Text:At the beginning of your upkeep, you may sacrifice an artifact. If you don't, tap Yawgmoth Demon and it deals 2 damage to you. Text:no text
PT:6/6 PT:6/6
K:Flying K:Flying
K:First Strike K:First Strike
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigElderSpawnSacrifice | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, you may sacrifice an artifact. If you don't, tap CARDNAME and it deals 2 damage to you.
SVar:TrigElderSpawnSacrifice:AB$ Sacrifice | Cost$ 0 | SacValid$ Artifact | Optional$ True | RememberSacrificed$ True | SubAbility$ DBElderSpawnSacrificeMe
SVar:DBElderSpawnSacrificeMe:DB$ Tap | Defined$ Self | ConditionDefined$ Remembered | ConditionPresent$ Artifact | ConditionCompare$ EQ0 | SubAbility$ DBElderSpawnDamage
SVar:DBElderSpawnDamage:DB$ DealDamage | Defined$ You | NumDmg$ 2 | ConditionDefined$ Remembered | ConditionPresent$ Artifact | ConditionCompare$ EQ0 | SubAbility$ DBElderSpawnCleanup
SVar:DBElderSpawnCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/yawgmoth_demon.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/yawgmoth_demon.jpg

View File

@@ -80,7 +80,7 @@ public class Upkeep extends Phase implements java.io.Serializable {
Upkeep.upkeepEcho(); Upkeep.upkeepEcho();
Upkeep.upkeepTheAbyss(); Upkeep.upkeepTheAbyss();
Upkeep.upkeepYawgmothDemon(); //Upkeep.upkeepYawgmothDemon();
Upkeep.upkeepDropOfHoney(); Upkeep.upkeepDropOfHoney();
Upkeep.upkeepDemonicHordes(); Upkeep.upkeepDemonicHordes();
Upkeep.upkeepTangleWire(); Upkeep.upkeepTangleWire();
@@ -533,8 +533,7 @@ public class Upkeep extends Phase implements java.io.Serializable {
final StringBuilder sb = new StringBuilder(); final StringBuilder sb = new StringBuilder();
sb.append(abyss.getName()).append(" - destroy a nonartifact creature of your choice."); sb.append(abyss.getName()).append(" - destroy a nonartifact creature of your choice.");
sacrificeCreature.setStackDescription(sb.toString()); sacrificeCreature.setStackDescription(sb.toString());
AllZone.getStack().addSimultaneousStackEntry(sacrificeCreature); AllZone.getStack().addAndUnfreeze(sacrificeCreature);
} // end for } // end for
} // The Abyss } // The Abyss
@@ -543,12 +542,12 @@ public class Upkeep extends Phase implements java.io.Serializable {
* upkeepYawgmothDemon. * upkeepYawgmothDemon.
* </p> * </p>
*/ */
private static void upkeepYawgmothDemon() { /*private static void upkeepYawgmothDemon() {
/* /*
* At the beginning of your upkeep, you may sacrifice an artifact. If * At the beginning of your upkeep, you may sacrifice an artifact. If
* you don't, tap Yawgmoth Demon and it deals 2 damage to you. * you don't, tap Yawgmoth Demon and it deals 2 damage to you.
*/ */
final Player player = Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn(); /*final Player player = Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn();
final CardList cards = player.getCardsIn(ZoneType.Battlefield, "Yawgmoth Demon"); final CardList cards = player.getCardsIn(ZoneType.Battlefield, "Yawgmoth Demon");
for (int i = 0; i < cards.size(); i++) { for (int i = 0; i < cards.size(); i++) {
@@ -611,7 +610,7 @@ public class Upkeep extends Phase implements java.io.Serializable {
AllZone.getStack().addSimultaneousStackEntry(sacrificeArtifact); AllZone.getStack().addSimultaneousStackEntry(sacrificeArtifact);
} // end for } // end for
} }*/
/** /**
* <p> * <p>