mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
text fixes
This commit is contained in:
parent
49d1f5823f
commit
f2d6629313
10 changed files with 25 additions and 30 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.effects.common.counter;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -43,10 +42,13 @@ public class GetEnergyCountersControllerEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
private void setText() {
|
||||
if (!staticText.isEmpty()) {
|
||||
if (staticText == null || !staticText.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
if (value.getMessage().equals("that many")) {
|
||||
staticText = "that many {E}";
|
||||
return;
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("you get ");
|
||||
int val;
|
||||
|
|
|
|||
|
|
@ -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.SavedGainedLifeValue;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
|
@ -929,7 +930,7 @@ 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) {
|
||||
} else if (amount == SavedDamageValue.MANY || amount == SavedGainedLifeValue.MANY) {
|
||||
sb.append("that many ").append(counter.getName()).append(" counters");
|
||||
} else {
|
||||
sb.append(counter.getDescription());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue