From e111c94205c75f35e721e36b89ce3f5cb6ce629e Mon Sep 17 00:00:00 2001 From: jendave Date: Sun, 7 Aug 2011 00:37:17 +0000 Subject: [PATCH] - Added the conversion of Valakut, the Molten Pinnacle by jeffwadsworth. --- res/cardsfolder/valakut_the_molten_pinnacle.txt | 6 ++++-- src/forge/GameActionUtil.java | 4 ++-- src/forge/PlayerZone_ComesIntoPlay.java | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/res/cardsfolder/valakut_the_molten_pinnacle.txt b/res/cardsfolder/valakut_the_molten_pinnacle.txt index af3986c736a..e12cbc2af2d 100644 --- a/res/cardsfolder/valakut_the_molten_pinnacle.txt +++ b/res/cardsfolder/valakut_the_molten_pinnacle.txt @@ -1,8 +1,10 @@ Name:Valakut, the Molten Pinnacle ManaCost:no cost Types:Land -Text:Whenever a Mountain enters the battlefield under your control, if you control at least five other Mountains, you may have Valakut, the Molten Pinnacle deal 3 damage to target creature or player. -K:Valakut, the Molten Pinnacle enters the battlefield tapped. +Text:no text +K:CARDNAME enters the battlefield tapped. +T:Mode$ ChangesZone | ValidCard$ Mountain.YouCtrl | Origin$ Any | Destination$ Battlefield | Optional$ True | Execute$ TrigDamage | IsPresent$ Mountain.YouCtrl | PresentCompare$ GE6 | TriggerZones$ Battlefield | TriggerDescription$ Whenever a Mountain enters the battlefield under your control, if you control at least five other Mountains, you may have CARDNAME deal 3 damage to target creature or player. +SVar:TrigDamage:AB$DealDamage | Cost$ 0 | Tgt$ TgtCP | TgtPrompt$ Select target creature or player | NumDmg$ 3 A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool. SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/valakut_the_molten_pinnacle.jpg diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index e244fba6240..e6668110ebb 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -1900,7 +1900,7 @@ public class GameActionUtil { public static void executeLandfallEffects(Card c) { if(c.getName().equals("Lotus Cobra")) landfall_Lotus_Cobra(c); } - + /* private static boolean checkValakutCondition(Card valakutCard, Card mtn) { // Get a list of all mountains CardList mountainList = AllZoneUtil.getPlayerTypeInPlay(valakutCard.getController(), @@ -2013,7 +2013,7 @@ public class GameActionUtil { } return true; // Tell the calling routine it's okay to call again if there are other Valakuts in play - } + }*/ private static boolean showLandfallDialog(Card c) { AllZone.Display.setCard(c); diff --git a/src/forge/PlayerZone_ComesIntoPlay.java b/src/forge/PlayerZone_ComesIntoPlay.java index d37fcbec59f..a7b1c42f634 100644 --- a/src/forge/PlayerZone_ComesIntoPlay.java +++ b/src/forge/PlayerZone_ComesIntoPlay.java @@ -70,11 +70,11 @@ public class PlayerZone_ComesIntoPlay extends DefaultPlayerZone { if(c.isLand()) { CardList list = AllZoneUtil.getPlayerCardsInPlay(c.getController()); - CardList listValakut = list.filter(new CardListFilter() { + /*CardList listValakut = list.filter(new CardListFilter() { public boolean addCard(Card c) { return c.getName().contains("Valakut, the Molten Pinnacle"); } - }); + });*/ list = list.filter(new CardListFilter() { public boolean addCard(Card c) { @@ -86,7 +86,7 @@ public class PlayerZone_ComesIntoPlay extends DefaultPlayerZone { for(int i = 0; i < list.size(); i++) { GameActionUtil.executeLandfallEffects(list.get(i)); } - + /* // Check for a mountain if (!listValakut.isEmpty() && c.getType().contains("Mountain") ) { for (int i = 0; i < listValakut.size(); i++) { @@ -96,7 +96,7 @@ public class PlayerZone_ComesIntoPlay extends DefaultPlayerZone { break; } } - } + }*/ //Tectonic Instability CardList tis = AllZoneUtil.getCardsInPlay("Tectonic Instability");