From 9835d020c5ed036c3f795da4a63daf79cf083f81 Mon Sep 17 00:00:00 2001 From: Sloth Date: Wed, 19 Oct 2011 14:53:54 +0000 Subject: [PATCH] - Removed the keyword "When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library." and converted the abilities to triggered abilities. --- res/cardsfolder/e/emrakul_the_aeons_torn.txt | 3 ++- res/cardsfolder/k/kozilek_butcher_of_truth.txt | 3 ++- res/cardsfolder/u/ulamog_the_infinite_gyre.txt | 3 ++- src/main/java/forge/DefaultPlayerZone.java | 13 ------------- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/res/cardsfolder/e/emrakul_the_aeons_torn.txt b/res/cardsfolder/e/emrakul_the_aeons_torn.txt index 4d386fffd5c..a3bdcd3dbe1 100644 --- a/res/cardsfolder/e/emrakul_the_aeons_torn.txt +++ b/res/cardsfolder/e/emrakul_the_aeons_torn.txt @@ -7,7 +7,8 @@ K:CARDNAME can't be countered. K:Flying K:Protection from colored spells K:Annihilator 6 -K:When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library. +T:Mode$ ChangesZone | Origin$ Any | Destination$ Graveyard | ValidCard$ Creature.Self | Execute$ TrigShuffle | TriggerDescription$ When CARDNAME is put into a graveyard from anywhere, its owner shuffles his or her graveyard into his or her library. +SVar:TrigShuffle:AB$ChangeZoneAll | Cost$ 0 | Defined$ TriggeredCardController | ChangeType$ Card | Origin$ Graveyard | Destination$ Library | Shuffle$ True T:Mode$ SpellCast | ValidCard$ Card.Self | Execute$ TrigAddTurn | TriggerDescription$ When you cast CARDNAME, take an extra turn after this one. SVar:TrigAddTurn:AB$AddTurn | Cost$ 0 | Defined$ You | NumTurns$ 1 SVar:Rarity:Mythic diff --git a/res/cardsfolder/k/kozilek_butcher_of_truth.txt b/res/cardsfolder/k/kozilek_butcher_of_truth.txt index 76e27e948f2..2b21a2c9280 100644 --- a/res/cardsfolder/k/kozilek_butcher_of_truth.txt +++ b/res/cardsfolder/k/kozilek_butcher_of_truth.txt @@ -4,7 +4,8 @@ Types:Legendary Creature Eldrazi Text:no text PT:12/12 K:Annihilator 4 -K:When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library. +T:Mode$ ChangesZone | Origin$ Any | Destination$ Graveyard | ValidCard$ Creature.Self | Execute$ TrigShuffle | TriggerDescription$ When CARDNAME is put into a graveyard from anywhere, its owner shuffles his or her graveyard into his or her library. +SVar:TrigShuffle:AB$ChangeZoneAll | Cost$ 0 | Defined$ TriggeredCardController | ChangeType$ Card | Origin$ Graveyard | Destination$ Library | Shuffle$ True T:Mode$ SpellCast | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ When you cast CARDNAME, draw four cards. SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 4 SVar:Rarity:Mythic diff --git a/res/cardsfolder/u/ulamog_the_infinite_gyre.txt b/res/cardsfolder/u/ulamog_the_infinite_gyre.txt index 6035d7899ec..10243a8b921 100644 --- a/res/cardsfolder/u/ulamog_the_infinite_gyre.txt +++ b/res/cardsfolder/u/ulamog_the_infinite_gyre.txt @@ -5,7 +5,8 @@ Text:no text PT:10/10 K:Indestructible K:Annihilator 4 -K:When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library. +T:Mode$ ChangesZone | Origin$ Any | Destination$ Graveyard | ValidCard$ Creature.Self | Execute$ TrigShuffle | TriggerDescription$ When CARDNAME is put into a graveyard from anywhere, its owner shuffles his or her graveyard into his or her library. +SVar:TrigShuffle:AB$ChangeZoneAll | Cost$ 0 | Defined$ TriggeredCardController | ChangeType$ Card | Origin$ Graveyard | Destination$ Library | Shuffle$ True T:Mode$ SpellCast | ValidCard$ Card.Self | Execute$ TrigDestroy | TriggerDescription$ When you cast CARDNAME, destroy target permanent. SVar:TrigDestroy:AB$Destroy | Cost$ 0 | ValidTgts$ Permanent | TgtPrompt$ Select target permanent SVar:Rarity:Mythic diff --git a/src/main/java/forge/DefaultPlayerZone.java b/src/main/java/forge/DefaultPlayerZone.java index ff952880eac..5a7d0e7bdd5 100644 --- a/src/main/java/forge/DefaultPlayerZone.java +++ b/src/main/java/forge/DefaultPlayerZone.java @@ -63,19 +63,6 @@ public class DefaultPlayerZone extends PlayerZone implements java.io.Serializabl return; } - if (is(Zone.Graveyard) - && c.hasKeyword("When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library.")) { - PlayerZone lib = c.getOwner().getZone(Constant.Zone.Library); - PlayerZone grave = c.getOwner().getZone(Constant.Zone.Graveyard); - lib.add(c); - for (Card gc : c.getOwner().getCardsIn(Zone.Graveyard)) { - lib.add(gc); - } - grave.reset(); - c.getOwner().shuffle(); - return; - } - if (c.isUnearthed() && (is(Zone.Graveyard) || is(Zone.Hand) || is(Zone.Library))) { PlayerZone removed = c.getOwner().getZone(Constant.Zone.Exile); removed.add(c);