mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
minor simplifications in GameAction.java
This commit is contained in:
@@ -86,7 +86,7 @@ public class GameAction {
|
|||||||
// Ideally move to should never be called without a prevZone
|
// Ideally move to should never be called without a prevZone
|
||||||
// Remove card from Current Zone, if it has one
|
// Remove card from Current Zone, if it has one
|
||||||
PlayerZone prev = AllZone.getZone(c);
|
PlayerZone prev = AllZone.getZone(c);
|
||||||
String prevName = prev != null ? prev.getZoneName() : "";
|
//String prevName = prev != null ? prev.getZoneName() : "";
|
||||||
|
|
||||||
if(c.hasKeyword("If CARDNAME would leave the battlefield, exile it instead of putting it anywhere else.") &&
|
if(c.hasKeyword("If CARDNAME would leave the battlefield, exile it instead of putting it anywhere else.") &&
|
||||||
!zone.is(Constant.Zone.Exile)) {
|
!zone.is(Constant.Zone.Exile)) {
|
||||||
@@ -95,7 +95,7 @@ public class GameAction {
|
|||||||
return moveTo(removed, c);
|
return moveTo(removed, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
Card lastKnownInfo = c;
|
//Card lastKnownInfo = c;
|
||||||
|
|
||||||
c = changeZone(prev, zone, c);
|
c = changeZone(prev, zone, c);
|
||||||
|
|
||||||
@@ -486,7 +486,6 @@ public class GameAction {
|
|||||||
GameActionUtil.stSetPT.execute();
|
GameActionUtil.stSetPT.execute();
|
||||||
GameActionUtil.stPump.execute();
|
GameActionUtil.stPump.execute();
|
||||||
|
|
||||||
//System.out.println("checking state effects");
|
|
||||||
CardList list = AllZoneUtil.getCardsInPlay();
|
CardList list = AllZoneUtil.getCardsInPlay();
|
||||||
Card c;
|
Card c;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user