From def0d09f63248a7fe50ceff7235baa75a1489f70 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 23:46:30 +0000 Subject: [PATCH] fix StackOverflow caused in checkStateEffects --- src/forge/GameAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/GameAction.java b/src/forge/GameAction.java index 56d2f805982..d0c839f3a82 100644 --- a/src/forge/GameAction.java +++ b/src/forge/GameAction.java @@ -545,12 +545,12 @@ public class GameAction { } }//if isAura - if(c.getNetDefense() <= c.getDamage() && !c.getKeyword().contains("Indestructible")) { + if(c.isCreature() && c.getNetDefense() <= c.getDamage() && !c.getKeyword().contains("Indestructible")) { destroy(c); AllZone.Combat.removeFromCombat(c); //this is untested with instants and abilities but required for First Strike combat phase } - else if(c.getNetDefense() <= 0) { + else if(c.isCreature() && c.getNetDefense() <= 0) { destroy(c); AllZone.Combat.removeFromCombat(c); }