mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Converted first char of rule text to uppercase for SpellAbility.
This commit is contained in:
parent
baba5a283b
commit
4dfadb3ea1
1 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,11 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> implements Ab
|
|||
}
|
||||
rules.add(sbRule.toString());
|
||||
}
|
||||
rules.add(ability.getRule());
|
||||
String rule = ability.getRule();
|
||||
if (rule.length() > 1) {
|
||||
rule = rule.substring(0, 1).toUpperCase() + rule.substring(1);
|
||||
}
|
||||
rules.add(rule);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue