updated text generation for ability counters

This commit is contained in:
Evan Kranzler 2020-04-20 18:19:56 -04:00
parent 5d8d9291ae
commit 37b79bc6ad

View file

@ -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>", "");
}
}