From 5b5ca1ffd28ce27e3b0905b36a74dbbe59b18fd3 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Tue, 17 Jan 2012 22:58:00 +0000 Subject: [PATCH] - Converted Erratic Explosion to script. --- res/cardsfolder/e/erratic_explosion.txt | 6 +++++- .../java/forge/card/cardfactory/CardFactorySorceries.java | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/res/cardsfolder/e/erratic_explosion.txt b/res/cardsfolder/e/erratic_explosion.txt index 800a8ea9cf3..1e1dfccbec4 100644 --- a/res/cardsfolder/e/erratic_explosion.txt +++ b/res/cardsfolder/e/erratic_explosion.txt @@ -1,7 +1,11 @@ Name:Erratic Explosion ManaCost:2 R Types:Sorcery -Text:Choose target creature or player. The computer will randomly choose a nonland card from your library. Erratic Explosion deals damage equal to that card's converted mana cost to that creature or player. +Text:no text +A:SP$ DigUntil | Cost$ 2 R | Valid$ Card.nonLand | ValidDescription$ nonland | FoundDestination$ Library | RevealedDestination$ Library | FoundLibraryPosition$ -1 | RevealedLibraryPosition$ -1 | RememberFound$ True | SubAbility$ Damage | SpellDescription$ Choose target creature or player. Reveal cards from the top of your library until you reveal a nonland card. Erratic Explosion deals damage equal to that card's converted mana cost to that creature or player. Put the revealed cards on the bottom of your library in any order. +SVar:Damage:DB$ DealDamage | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | NumDmg$ X | SubAbility$ DBCleanup +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:X:Remembered$CardManaCost SVar:Rarity:Common SVar:Picture:http://resources.wizards.com/magic/cards/ons/en-us/card12484.jpg SetInfo:ONS|Common|http://magiccards.info/scans/en/on/201.jpg diff --git a/src/main/java/forge/card/cardfactory/CardFactorySorceries.java b/src/main/java/forge/card/cardfactory/CardFactorySorceries.java index 92a1f9e09c9..53517b0a1fa 100644 --- a/src/main/java/forge/card/cardfactory/CardFactorySorceries.java +++ b/src/main/java/forge/card/cardfactory/CardFactorySorceries.java @@ -799,7 +799,7 @@ public class CardFactorySorceries { spell.setBeforePayMana(target); } // *************** END ************ END *************************** -*/ + // *************** START *********** START ************************** else if (cardName.equals("Erratic Explosion")) { final Cost cost = new Cost(card.getManaCost(), cardName, false); @@ -892,7 +892,7 @@ public class CardFactorySorceries { card.setSVar("PlayMain1", "TRUE"); } // *************** END ************ END ************************** - +*/ // *************** START *********** START ************************** else if (cardName.equals("Martial Coup")) {