move code for Nissa's Chosen from sacrificeDestroy to moveToGraveyard

This commit is contained in:
jendave
2011-08-06 20:44:40 +00:00
parent f37ffe5412
commit eabf3f522a

View File

@@ -151,13 +151,17 @@ public class GameAction {
}
public Card moveToGraveyard(Card c) {
final PlayerZone origZone = AllZone.getZone(c);
final PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, c.getOwner());
if (AllZoneUtil.isCardInPlay("Leyline of the Void", c.getOwner().getOpponent())) {
return moveTo(AllZone.getZone(Constant.Zone.Exile, c.getOwner()), c);
}
if(c.getName().equals("Nissa's Chosen") && origZone.is(Constant.Zone.Battlefield)) {
return moveToLibrary(c);
}
if(c.hasKeyword("If CARDNAME would be put into a graveyard this turn, exile it instead.")) {
return moveTo(AllZone.getZone(Constant.Zone.Exile, c.getOwner()), c);
}
@@ -2082,11 +2086,6 @@ public class GameAction {
persistAb.setStackDescription(newCard.getName() + " - Returning from Persist");
AllZone.Stack.add(persistAb);
}
if(c.getName().equals("Nissa's Chosen")) {
PlayerZone library = AllZone.getZone(Constant.Zone.Library, newCard.getOwner());
moveTo(library, newCard);
}
}//sacrificeDestroy()
public boolean destroy(Card c) {