Text fixes (fixes #8399)

This commit is contained in:
Daniel Bomar 2021-10-22 23:50:30 -05:00
parent ed4bc46164
commit bcacb870af
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,7 @@ public class PayVariableLifeCost extends VariableCostImpl {
public PayVariableLifeCost(boolean useAsAdditionalCost) {
super(useAsAdditionalCost ? VariableCostType.ADDITIONAL : VariableCostType.NORMAL,
"life to pay");
this.text = new StringBuilder(useAsAdditionalCost ? "as an additional cost to cast this spell, pay " : "Pay ")
this.text = new StringBuilder(useAsAdditionalCost ? "As an additional cost to cast this spell, pay " : "Pay ")
.append(xText).append(' ').append("life").toString();
}

View file

@ -2,19 +2,21 @@ package mage.target.common;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.filter.FilterPermanent;
import mage.filter.StaticFilters;
import mage.filter.common.FilterCreaturePermanent;
/**
* @author North
*/
public class TargetCreaturePermanentAmount extends TargetPermanentAmount {
private static final FilterCreaturePermanent defaultFilter = new FilterCreaturePermanent("target creatures");
public TargetCreaturePermanentAmount(int amount) {
super(amount, StaticFilters.FILTER_PERMANENT_CREATURE);
super(amount, defaultFilter);
}
public TargetCreaturePermanentAmount(DynamicValue amount) {
this(amount, StaticFilters.FILTER_PERMANENT_CREATURE);
this(amount, defaultFilter);
}
public TargetCreaturePermanentAmount(int amount, FilterPermanent filter) {