From 44db2cfe2b7cb59b7290f26d5782ecfb86262f18 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 19:31:21 +0000 Subject: [PATCH] convert Anowon, the Ruin Sage to triggers --- res/cardsfolder/anowon_the_ruin_sage.txt | 4 ++- src/forge/GameActionUtil.java | 33 ------------------------ 2 files changed, 3 insertions(+), 34 deletions(-) diff --git a/res/cardsfolder/anowon_the_ruin_sage.txt b/res/cardsfolder/anowon_the_ruin_sage.txt index c98fef640c4..67890acc08d 100644 --- a/res/cardsfolder/anowon_the_ruin_sage.txt +++ b/res/cardsfolder/anowon_the_ruin_sage.txt @@ -1,8 +1,10 @@ Name:Anowon, the Ruin Sage ManaCost:3 B B Types:Legendary Creature Vampire Shaman -Text:At the beginning of your upkeep, each player sacrifices a non-Vampire creature. +Text:no text PT:4/3 +T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigSac | TriggerDescription$ At the beginning of your upkeep, each player sacrifices a non-Vampire creature. +SVar:TrigSac:AB$Sacrifice | Cost$ 0 | SacValid$ Creature.nonVampire | Defined$ Each SVar:RemAIDeck:True SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/anowon_the_ruin_sage.jpg diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 19ddca52680..0d1205e975b 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -50,7 +50,6 @@ public class GameActionUtil { upkeep_Greener_Pastures(); upkeep_Heartmender(); - upkeep_Anowon(); upkeep_Cunning_Lethemancer(); upkeep_Shapeshifter(); upkeep_Vesuvan_Doppelganger_Keyword(); @@ -3808,38 +3807,6 @@ public class GameActionUtil { } // if creatures > 0 }//upkeep_Heartmender - private static void upkeep_Anowon() { - final Player player = AllZone.Phase.getPlayerTurn(); - CardList list = AllZoneUtil.getPlayerCardsInPlay(player, "Anowon, the Ruin Sage"); - - if(list.size() > 0) { - Ability ability = new Ability(list.get(0), "0") { - @Override - public void resolve() { - PlayerZone hPlay = AllZone.getZone(Constant.Zone.Battlefield, AllZone.HumanPlayer); - PlayerZone cPlay = AllZone.getZone(Constant.Zone.Battlefield, AllZone.ComputerPlayer); - CardList choices = new CardList(hPlay.getCards()); - - CardListFilter filter = new CardListFilter() { - public boolean addCard(Card c) { - return (c.isCreature() && !c.isType("Vampire")); - } - }; - - choices = choices.filter(filter); - if(choices.size() > 0) AllZone.HumanPlayer.sacrificeCreature(choices); - - CardList compCreats = new CardList(cPlay.getCards()); - compCreats = compCreats.filter(filter); - - if(compCreats.size() > 0) AllZone.ComputerPlayer.sacrificeCreature(compCreats); - } - }; - ability.setStackDescription("At the beginning of your upkeep, each player sacrifices a non-Vampire creature."); - AllZone.Stack.add(ability); - } - } - private static void upkeep_Cunning_Lethemancer() { final Player player = AllZone.Phase.getPlayerTurn();