mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
move code for Nissa's Chosen from sacrificeDestroy to moveToGraveyard
This commit is contained in:
@@ -151,13 +151,17 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Card moveToGraveyard(Card c) {
|
public Card moveToGraveyard(Card c) {
|
||||||
|
final PlayerZone origZone = AllZone.getZone(c);
|
||||||
final PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, c.getOwner());
|
final PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, c.getOwner());
|
||||||
|
|
||||||
if (AllZoneUtil.isCardInPlay("Leyline of the Void", c.getOwner().getOpponent())) {
|
if (AllZoneUtil.isCardInPlay("Leyline of the Void", c.getOwner().getOpponent())) {
|
||||||
return moveTo(AllZone.getZone(Constant.Zone.Exile, c.getOwner()), c);
|
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.")) {
|
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);
|
return moveTo(AllZone.getZone(Constant.Zone.Exile, c.getOwner()), c);
|
||||||
}
|
}
|
||||||
@@ -2082,11 +2086,6 @@ public class GameAction {
|
|||||||
persistAb.setStackDescription(newCard.getName() + " - Returning from Persist");
|
persistAb.setStackDescription(newCard.getName() + " - Returning from Persist");
|
||||||
AllZone.Stack.add(persistAb);
|
AllZone.Stack.add(persistAb);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(c.getName().equals("Nissa's Chosen")) {
|
|
||||||
PlayerZone library = AllZone.getZone(Constant.Zone.Library, newCard.getOwner());
|
|
||||||
moveTo(library, newCard);
|
|
||||||
}
|
|
||||||
}//sacrificeDestroy()
|
}//sacrificeDestroy()
|
||||||
|
|
||||||
public boolean destroy(Card c) {
|
public boolean destroy(Card c) {
|
||||||
|
|||||||
Reference in New Issue
Block a user