From 7cd3a66f7bf92f1bd5a40f1b664c7c2bd2066ddf Mon Sep 17 00:00:00 2001 From: Sloth Date: Fri, 18 Jan 2013 19:36:59 +0000 Subject: [PATCH] - Fixed "CounterType$ Any" in AF CounterRemove. - GTC: Added Thrull Parasite by PowerClaws. --- .../card/abilityfactory/effects/CountersRemoveEffect.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/forge/card/abilityfactory/effects/CountersRemoveEffect.java b/src/main/java/forge/card/abilityfactory/effects/CountersRemoveEffect.java index 92e2ae78fbc..c8c7ee96f26 100644 --- a/src/main/java/forge/card/abilityfactory/effects/CountersRemoveEffect.java +++ b/src/main/java/forge/card/abilityfactory/effects/CountersRemoveEffect.java @@ -61,13 +61,15 @@ public class CountersRemoveEffect extends SpellEffect { counterAmount = AbilityFactory.calculateAmount(sa.getSourceCard(), sa.getParam("CounterNum"), sa); } - CounterType counterType; + CounterType counterType = null; try { counterType = AbilityFactory.getCounterType(type, sa); } catch (Exception e) { - System.out.println("Counter type doesn't match, nor does an SVar exist with the type name."); - return; + if (!type.matches("Any")) { + System.out.println("Counter type doesn't match, nor does an SVar exist with the type name."); + return; + } } final Target tgt = sa.getTarget();