From 0fc2be53a17ced2cfdf1add18a0aec75e9623bb5 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 19:19:22 +0000 Subject: [PATCH] convert the SpellCast part of Witch-Maw Nephilim to triggers --- res/cardsfolder/witch_maw_nephilim.txt | 4 ++- src/forge/GameActionUtil.java | 43 -------------------------- 2 files changed, 3 insertions(+), 44 deletions(-) diff --git a/res/cardsfolder/witch_maw_nephilim.txt b/res/cardsfolder/witch_maw_nephilim.txt index a4a7a257ad6..b29fc0febb3 100644 --- a/res/cardsfolder/witch_maw_nephilim.txt +++ b/res/cardsfolder/witch_maw_nephilim.txt @@ -1,8 +1,10 @@ Name:Witch-Maw Nephilim ManaCost:G W U B Types:Creature Nephilim -Text:Whenever you cast a spell, you may put two +1/+1 counters on Witch-Maw Nephilim.\r\nWhenever Witch-Maw Nephilim attacks, it gains trample until end of turn if its power is 10 or greater. +Text:Whenever CARDNAME attacks, it gains trample until end of turn if its power is 10 or greater. PT:1/1 +T:Mode$ SpellCast | ValidCard$ Card.YouCtrl | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ Whenever you cast a spell, you may put two +1/+1 counters on CARDNAME. +SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 2 SVar:BuffedBy:Spell SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/witch_maw_nephilim.jpg diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 74d42220652..ffd205f38e7 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -185,7 +185,6 @@ public class GameActionUtil { playCard_Riverfall_Mimic(c); playCard_Shorecrasher_Mimic(c); playCard_Woodlurker_Mimic(c); - playCard_Witch_Maw_Nephilim(c); playCard_Forced_Fruition(c); playCard_Gelectrode(c); playCard_Standstill(c); @@ -1136,48 +1135,6 @@ public class GameActionUtil { } } // Dovescape - public static void playCard_Witch_Maw_Nephilim(Card c) { - final Player controller = c.getController(); - - final PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, controller); - - CardList list = new CardList(); - list.addAll(play.getCards()); - - list = list.getName("Witch-Maw Nephilim"); - - if (list.size() > 0) { - - for (int i = 0; i < list.size(); i++) { - final Card card = list.get(i); - - Ability ability2 = new Ability(card, "0") { - @Override - public void resolve() { - - if (card.getController().equals(AllZone.HumanPlayer)) { - String question = "Put two +1/+1 counters on Witch-Maw Nephilim?"; - - if (GameActionUtil.showYesNoDialog(card, question)) { - card.addCounter(Counters.P1P1, 2); - } - } - if (card.getController().equals(AllZone.ComputerPlayer)) { - card.addCounter(Counters.P1P1, 2); - } - } - }; // ability2 - - StringBuilder sb = new StringBuilder(); - sb.append(card.getName()).append(" - ").append(c.getController()); - sb.append(" played a spell and may put two +1/+1 counters on Witch-Maw Nephilim."); - ability2.setStackDescription(sb.toString()); - - AllZone.Stack.add(ability2); - } - } - }// Witch-Maw Nephilim - public static void playCard_Gelectrode(Card c) { final Player controller = c.getController();