solve redundant (Targeting: clauses in stackdescs for Wrapped triggers

This commit is contained in:
Northmoc
2021-07-13 19:38:08 -04:00
parent 94ae1fe777
commit 35f2c7dacf

View File

@@ -232,8 +232,8 @@ public class WrappedAbility extends Ability {
if (regtrig == null) return "";
final StringBuilder sb = new StringBuilder(regtrig.replaceAbilityText(regtrig.toString(true), this));
List<TargetChoices> allTargets = sa.getAllTargetChoices();
if (!allTargets.isEmpty()) {
sb.append(" (Targeting ");
if (!allTargets.isEmpty() && !sb.toString().contains("(Targeting:")) {
sb.append(" (Targeting: ");
sb.append(allTargets);
sb.append(")");
}