forked from External/mage
small text generation improvement
This commit is contained in:
parent
a223b3f89c
commit
519a9e0c49
3 changed files with 6 additions and 2 deletions
|
|
@ -302,6 +302,9 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
if (!conditionText.isEmpty()) { // e.g. CaseSolveAbility
|
||||
if (replaceRuleText && triggerPhrase != null && triggerPhrase.contains("{this}")) {
|
||||
conditionText = conditionText.replace("{this}", "it");
|
||||
if (conditionText.startsWith("it is ")) {
|
||||
conditionText = conditionText.replace("it is ", "it's ");
|
||||
}
|
||||
}
|
||||
if (!conditionText.startsWith("if ")) {
|
||||
sb.append("if ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue