mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
Use CardUtil function instead of reimplementing lower-casing
This commit is contained in:
parent
17e0c82a07
commit
e22a3ec19f
1 changed files with 2 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ import mage.abilities.effects.Effect;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.game.Game;
|
||||
import mage.target.targetpointer.TargetPointer;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -67,8 +68,7 @@ public class CreateDelayedTriggeredAbilityEffect extends OneShotEffect {
|
|||
return staticText;
|
||||
}
|
||||
if (ability.getRuleVisible()) {
|
||||
String tmp = ability.getRule();
|
||||
return rulePrefix + tmp.substring(0, 1).toLowerCase() + tmp.substring(1);
|
||||
return rulePrefix + CardUtil.getTextWithFirstCharLowerCase(ability.getRule());
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue