From c1348841ddb3df2bf27a623262ec8a180499352b Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 19:25:50 +0000 Subject: [PATCH] convert Guan Yu, Sainted Warrior to triggers --- res/cardsfolder/guan_yu_sainted_warrior.txt | 4 +++- src/forge/GameAction.java | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/res/cardsfolder/guan_yu_sainted_warrior.txt b/res/cardsfolder/guan_yu_sainted_warrior.txt index 0c564b434fc..184effa9c34 100644 --- a/res/cardsfolder/guan_yu_sainted_warrior.txt +++ b/res/cardsfolder/guan_yu_sainted_warrior.txt @@ -1,9 +1,11 @@ Name:Guan Yu, Sainted Warrior ManaCost:3 W W Types:Legendary Creature Human Soldier Warrior -Text:When Guan Yu, Sainted Warrior is put into your graveyard from the battlefield, you may shuffle Guan Yu into your library. +Text:no text PT:3/5 K:Horsemanship +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigReturn | Optional$ True | TriggerDescription$ When CARDNAME is put into your graveyard from the battlefield, you may shuffle CARDNAME into your library. +SVar:TrigReturn:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Library | Shuffle$ True SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/guan_yu_sainted_warrior.jpg SetInfo:PTK|Rare|http://magiccards.info/scans/en/p3k/6.jpg diff --git a/src/forge/GameAction.java b/src/forge/GameAction.java index 0a0cd32e2fe..ef22fecaf03 100644 --- a/src/forge/GameAction.java +++ b/src/forge/GameAction.java @@ -2085,12 +2085,6 @@ public class GameAction { PlayerZone library = AllZone.getZone(Constant.Zone.Library, newCard.getOwner()); moveTo(library, newCard); } - - else if(c.getName().equals("Guan Yu, Sainted Warrior")) { - PlayerZone library = AllZone.getZone(Constant.Zone.Library, newCard.getOwner()); - newCard = moveTo(library, newCard); - owner.shuffle(); - } }//sacrificeDestroy() public boolean destroy(Card c) {