minor simplifications in GameAction.java

This commit is contained in:
jendave
2011-08-07 00:55:32 +00:00
parent a7eed2e603
commit 43e22283ff

View File

@@ -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;