forked from External/mage
[DFT] various text fixes
This commit is contained in:
parent
06f24515cc
commit
bc120a34c7
29 changed files with 39 additions and 32 deletions
|
|
@ -10,6 +10,7 @@ import mage.abilities.costs.VariableCost;
|
|||
import mage.abilities.costs.mana.*;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.SavedDamageValue;
|
||||
import mage.abilities.dynamicvalue.common.SavedDiscardValue;
|
||||
import mage.abilities.dynamicvalue.common.SavedGainedLifeValue;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
|
|
@ -967,7 +968,9 @@ public final class CardUtil {
|
|||
boolean xValue = amount.toString().equals("X");
|
||||
if (xValue) {
|
||||
sb.append("X ").append(counter.getName()).append(" counters");
|
||||
} else if (amount == SavedDamageValue.MANY || amount == SavedGainedLifeValue.MANY) {
|
||||
} else if (amount == SavedDamageValue.MANY
|
||||
|| amount == SavedGainedLifeValue.MANY
|
||||
|| amount == SavedDiscardValue.MANY) {
|
||||
sb.append("that many ").append(counter.getName()).append(" counters");
|
||||
} else {
|
||||
sb.append(counter.getDescription());
|
||||
|
|
@ -1176,7 +1179,7 @@ public final class CardUtil {
|
|||
.sum();
|
||||
int remainingValue = maxValue - selectedValue;
|
||||
Set<UUID> validTargets = new HashSet<>();
|
||||
for (UUID id: possibleTargets) {
|
||||
for (UUID id : possibleTargets) {
|
||||
MageObject mageObject = game.getObject(id);
|
||||
if (mageObject != null && valueMapper.applyAsInt(mageObject) <= remainingValue) {
|
||||
validTargets.add(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue