From 48bc7cb7c72d1177a4dd8e2e2dee4b97562d2184 Mon Sep 17 00:00:00 2001 From: Sloth Date: Sun, 22 Jan 2012 14:57:53 +0000 Subject: [PATCH] - Converted Sword of the Meek to script. --- res/cardsfolder/s/sword_of_the_meek.txt | 5 ++++- src/main/java/forge/PlayerZoneComesIntoPlay.java | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/res/cardsfolder/s/sword_of_the_meek.txt b/res/cardsfolder/s/sword_of_the_meek.txt index df65d623b9c..e6bd83bfc09 100644 --- a/res/cardsfolder/s/sword_of_the_meek.txt +++ b/res/cardsfolder/s/sword_of_the_meek.txt @@ -1,8 +1,11 @@ Name:Sword of the Meek ManaCost:2 Types:Artifact Equipment -Text:Equipped creature gets +1/+2.\r\nWhenever a 1/1 creature enters the battlefield under your control, you may return CARDNAME from your graveyard to the battlefield, then attach it to that creature. +Text:Equipped creature gets +1/+2. K:eqPump 2:+1/+2 +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.powerEQ1+toughnessEQ1 | Execute$ TrigReturn | TriggerZones$ Graveyard | OptionalDecider$ You | TriggerDescription$ Whenever a 1/1 creature enters the battlefield under your control, you may return CARDNAME from your graveyard to the battlefield, then attach it to that creature. +SVar:TrigReturn:AB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Graveyard | Destination$ Battlefield | SubAbility$ DBAttach +SVar:DBAttach:DB$ Attach | Cost$ 0 | Defined$ TriggeredCard SVar:Rarity:Uncommon SVar:Picture:http://www.wizards.com/global/images/magic/general/sword_of_the_meek.jpg SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/165.jpg diff --git a/src/main/java/forge/PlayerZoneComesIntoPlay.java b/src/main/java/forge/PlayerZoneComesIntoPlay.java index 29c81ae4ba6..2926ed2c41f 100644 --- a/src/main/java/forge/PlayerZoneComesIntoPlay.java +++ b/src/main/java/forge/PlayerZoneComesIntoPlay.java @@ -199,7 +199,7 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { } } - final CardList meek = player.getCardsIn(Zone.Graveyard, "Sword of the Meek"); + /*final CardList meek = player.getCardsIn(Zone.Graveyard, "Sword of the Meek"); if ((meek.size() > 0) && c.isCreature() && (c.getNetAttack() == 1) && (c.getNetDefense() == 1)) { for (int i = 0; i < meek.size(); i++) { @@ -239,7 +239,7 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { AllZone.getStack().addSimultaneousStackEntry(ability); } - } + }*/ } // end add()