mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
updated text generation for ability counters
This commit is contained in:
parent
5d8d9291ae
commit
37b79bc6ad
1 changed files with 5 additions and 1 deletions
|
@ -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>", "");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue