GainAbilityAttachedEffect no longer includes reminder text on the attachment

This commit is contained in:
xenohedron 2023-07-16 00:46:23 -04:00
parent 481384a3c8
commit 906e30a81b
2 changed files with 7 additions and 2 deletions

View file

@ -147,7 +147,12 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl {
if (quotes) {
sb.append('"');
}
sb.append(ability.getRule("This " + targetObjectName));
String abilityRuleText = ability.getRule("This " + targetObjectName);
if (abilityRuleText.endsWith(")</i>")) {
// remove reminder text for this rule generation
abilityRuleText = abilityRuleText.substring(0, abilityRuleText.indexOf(" <i>("));
}
sb.append(abilityRuleText);
if (quotes) {
sb.append('"');
}

View file

@ -28,7 +28,7 @@ public class SkulkAbility extends StaticAbility {
@Override
public String getRule() {
return "Skulk <i>(This creature can't be blocked by creatures with greater power.)</i>";
return "skulk <i>(This creature can't be blocked by creatures with greater power.)</i>";
}
}