mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[CON] various text fixes
This commit is contained in:
parent
edaaac53d9
commit
c8cdc0a502
28 changed files with 237 additions and 212 deletions
|
|
@ -161,6 +161,7 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
}
|
||||
} else if (this.getTargets().isEmpty()
|
||||
|| ruleLow.startsWith("exile")
|
||||
|| ruleLow.startsWith("gain")
|
||||
|| ruleLow.startsWith("destroy")
|
||||
|| ruleLow.startsWith("return")
|
||||
|| ruleLow.startsWith("tap")
|
||||
|
|
|
|||
|
|
@ -90,6 +90,6 @@ public class DomainValue implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "basic land types among lands " + (countTargetPlayer ? "they control" : "you control");
|
||||
return "basic land type among lands " + (countTargetPlayer ? "they control" : "you control");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,7 +153,10 @@ public class DamageTargetEffect extends OneShotEffect {
|
|||
String message = amount.getMessage();
|
||||
sb.append(this.sourceName).append(" deals ");
|
||||
if (message.isEmpty() || !message.equals("1")) {
|
||||
sb.append(amount).append(' ');
|
||||
sb.append(amount);
|
||||
}
|
||||
if (!sb.toString().endsWith(" ")) {
|
||||
sb.append(' ');
|
||||
}
|
||||
sb.append("damage to ");
|
||||
if (!targetDescription.isEmpty()) {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package mage.abilities.effects.common.continuous;
|
|||
|
||||
import mage.abilities.Abilities;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.mana.*;
|
||||
import mage.choices.Choice;
|
||||
|
|
@ -61,7 +62,6 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
|
|||
}
|
||||
this.chooseLandType = chooseLandType;
|
||||
this.loseOther = loseOther;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
public BecomesBasicLandTargetEffect(final BecomesBasicLandTargetEffect effect) {
|
||||
|
|
@ -147,8 +147,18 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
|
|||
return true;
|
||||
}
|
||||
|
||||
private String setText() {
|
||||
StringBuilder sb = new StringBuilder("target land becomes ");
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("target ");
|
||||
if (!mode.getTargets().isEmpty()) {
|
||||
sb.append(mode.getTargets().get(0).getTargetName());
|
||||
} else {
|
||||
sb.append("land");
|
||||
}
|
||||
sb.append(" becomes ");
|
||||
if (chooseLandType) {
|
||||
sb.append("the basic land type of your choice");
|
||||
} else {
|
||||
|
|
@ -162,7 +172,7 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
|
|||
sb.append(" in addition to its other types");
|
||||
}
|
||||
if (!duration.toString().isEmpty() && duration != Duration.EndOfGame) {
|
||||
sb.append(' ').append(duration.toString());
|
||||
sb.append(' ').append(duration);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
|
|
@ -7,13 +6,12 @@ import mage.constants.CardType;
|
|||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class RakkaMarElementalToken extends TokenImpl {
|
||||
|
||||
public RakkaMarElementalToken () {
|
||||
super("Elemental", "3/1 red Elemental creature with Haste");
|
||||
public RakkaMarElementalToken() {
|
||||
super("Elemental", "3/1 red Elemental creature token with haste");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.ELEMENTAL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue