mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed "CounterType$ Any" in AF CounterRemove.
- GTC: Added Thrull Parasite by PowerClaws.
This commit is contained in:
@@ -61,13 +61,15 @@ public class CountersRemoveEffect extends SpellEffect {
|
|||||||
counterAmount = AbilityFactory.calculateAmount(sa.getSourceCard(), sa.getParam("CounterNum"), sa);
|
counterAmount = AbilityFactory.calculateAmount(sa.getSourceCard(), sa.getParam("CounterNum"), sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
CounterType counterType;
|
CounterType counterType = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
counterType = AbilityFactory.getCounterType(type, sa);
|
counterType = AbilityFactory.getCounterType(type, sa);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Counter type doesn't match, nor does an SVar exist with the type name.");
|
if (!type.matches("Any")) {
|
||||||
return;
|
System.out.println("Counter type doesn't match, nor does an SVar exist with the type name.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final Target tgt = sa.getTarget();
|
final Target tgt = sa.getTarget();
|
||||||
|
|||||||
Reference in New Issue
Block a user