Better fix for stack description of WrappedAbility

This commit is contained in:
Lyu Zong-Hong
2021-07-14 15:43:50 +09:00
parent 716ac11bef
commit 8ec4a69cb0

View File

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