- Removed the keyword "When CARDNAME is put into a graveyard from anywhere, shuffle it into its owner's library."

This commit is contained in:
Sloth
2011-10-19 14:43:06 +00:00
parent e4d92f2b3e
commit d81300d786
3 changed files with 2 additions and 49 deletions

View File

@@ -4,7 +4,8 @@ Types:Creature Elemental Incarnation
Text:If noncombat damage would be dealt to you, prevent that damage. You gain life equal to the damage prevented this way. Text:If noncombat damage would be dealt to you, prevent that damage. You gain life equal to the damage prevented this way.
PT:6/6 PT:6/6
K:Flying K:Flying
K:When CARDNAME is put into a graveyard from anywhere, shuffle it into its owner's library. T:Mode$ ChangesZone | Origin$ Any | Destination$ Graveyard | ValidCard$ Creature.Self | Execute$ TrigShuffle | TriggerDescription$ When CARDNAME is put into a graveyard from anywhere, shuffle it into its owner's library.
SVar:TrigShuffle:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Library | Shuffle$ True | Defined$ Self
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/purity.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/purity.jpg
SetInfo:LRW|Rare|http://magiccards.info/scans/en/lw/37.jpg SetInfo:LRW|Rare|http://magiccards.info/scans/en/lw/37.jpg

View File

@@ -62,21 +62,6 @@ public class DefaultPlayerZone extends PlayerZone implements java.io.Serializabl
c.getOwner().shuffle(); c.getOwner().shuffle();
return; return;
} }
//slight difference from above I guess, the card gets put into the grave first, then shuffled into library.
//key is that this would trigger abilities that trigger on cards hitting the graveyard
else if (is(Zone.Graveyard)
&& c.hasKeyword("When CARDNAME is put into a graveyard from anywhere, shuffle it into its owner's library."))
{
PlayerZone lib = c.getOwner().getZone(Constant.Zone.Library);
PlayerZone grave = c.getOwner().getZone(Constant.Zone.Graveyard);
grave.addOnce(c);
grave.remove(c);
lib.add(c);
c.getOwner().shuffle();
return;
}
if (is(Zone.Graveyard) 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.")) { && 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.")) {
@@ -98,7 +83,6 @@ public class DefaultPlayerZone extends PlayerZone implements java.io.Serializabl
return; return;
} }
c.addObserver(this); c.addObserver(this);
c.setTurnInZone(AllZone.getPhase().getTurn()); c.setTurnInZone(AllZone.getPhase().getTurn());
@@ -107,31 +91,6 @@ public class DefaultPlayerZone extends PlayerZone implements java.io.Serializabl
update(); update();
} }
//hack... use for adding Dread / Serra Avenger to grave
/**
*
* @param o a {@link java.lang.Object} object.
*/
public final void addOnce(final Object o) {
Card c = (Card) o;
//Immutable cards are usually emblems,effects and the mana pool and we don't want to log those.
if (!c.isImmutable()) {
cardsAddedThisTurn.add(c);
if (AllZone.getZoneOf(c) != null) {
cardsAddedThisTurnSource.add(AllZone.getZoneOf(c).getZoneType());
} else {
cardsAddedThisTurnSource.add(null);
}
}
c.addObserver(this);
cards.add((Card) c);
update();
}
/** /**
* *
* @param ob an Observable * @param ob an Observable

View File

@@ -45,13 +45,6 @@ interface IPlayerZone {
*/ */
void add(Card c, int index); void add(Card c, int index);
/**
* <p>addOnce.</p>
*
* @param o a {@link java.lang.Object} object.
*/
void addOnce(Object o);
/** /**
* <p>get.</p> * <p>get.</p>
* *