mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
Changed rule text generation to set first character to uppercase if needed.
This commit is contained in:
parent
d4414b7de8
commit
36b4482367
2 changed files with 18 additions and 8 deletions
|
|
@ -415,7 +415,10 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
sbRule.append(": ");
|
||||
}
|
||||
}
|
||||
sbRule.append(modes.getText());
|
||||
String text = modes.getText();
|
||||
if (!text.isEmpty()) {
|
||||
sbRule.append(Character.toUpperCase(text.charAt(0))).append(text.substring(1));
|
||||
}
|
||||
|
||||
return sbRule.toString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue