[WOE] text fixes

This commit is contained in:
xenohedron 2023-08-25 22:52:10 -04:00
parent 1107fb5770
commit ed4a1bf33f
37 changed files with 64 additions and 55 deletions

View file

@ -41,7 +41,7 @@ public class PayMoreToCastAsThoughtItHadFlashAbility extends SpellAbility {
@Override
public String getRule() {
return "You may cast this spell as though it had flash if you pay " + costsToAdd.getText() + " more to cast it. <i>(You may cast it any time you could cast an instant.)</i>";
return "You may cast {this} as though it had flash if you pay " + costsToAdd.getText() + " more to cast it. <i>(You may cast it any time you could cast an instant.)</i>";
}
}

View file

@ -32,6 +32,7 @@ public class AddCountersAllEffect extends OneShotEffect {
this.counter = counter;
this.amount = amount;
this.filter = filter;
staticText = "put " + counter.getDescription() + " on each " + filter.getMessage();
}
protected AddCountersAllEffect(final AddCountersAllEffect effect) {
@ -72,14 +73,6 @@ public class AddCountersAllEffect extends OneShotEffect {
return false;
}
@Override
public String getText(Mode mode) {
if (!staticText.isEmpty()) {
return staticText;
}
return CardUtil.getAddRemoveCountersText(amount, counter, getTargetPointer().describeTargets(mode.getTargets(), "that creature"), true);
}
@Override
public AddCountersAllEffect copy() {
return new AddCountersAllEffect(this);

View file

@ -53,7 +53,7 @@ public class BargainAbility extends StaticAbility implements OptionalAdditionalS
super(Zone.STACK, null);
this.additionalCost = new OptionalAdditionalCostImpl(keywordText, reminderText, new SacrificeTargetCost(bargainFilter));
this.additionalCost.setRepeatable(false);
this.rule = additionalCost.getName() + additionalCost.getReminderText();
this.rule = additionalCost.getName() + ' ' + additionalCost.getReminderText();
this.setRuleAtTheTop(true);
this.addHint(BargainCostWasPaidHint.instance);
this.activationKey = null;
@ -146,4 +146,4 @@ public class BargainAbility extends StaticAbility implements OptionalAdditionalS
public String getRule() {
return rule;
}
}
}