updated text generation for ability counters
@@ -10,7 +10,7 @@ public class AbilityCounter extends Counter {
private final Ability ability;
AbilityCounter(Ability ability, int count) {
- super(ability.getRule(), count);
+ super(makeName(ability.getRule()), count);
this.ability = ability;
}
@@ -27,4 +27,8 @@ public class AbilityCounter extends Counter {
public AbilityCounter copy() {
return new AbilityCounter(this);
}
+
+ private static String makeName(String name) {
+ return name.replaceAll(" <i>.*<\\/i>", "");
+ }
}
