forked from External/mage
text fixes
This commit is contained in:
parent
abd0e4ca8f
commit
88b6f4036f
4 changed files with 8 additions and 6 deletions
|
|
@ -10,6 +10,7 @@ import mage.game.events.DamagedEvent;
|
|||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
|
|
@ -28,8 +29,8 @@ public class DealsDamageToThisAllTriggeredAbility extends TriggeredAbilityImpl {
|
|||
this.setTargetPointer = setTargetPointer;
|
||||
this.filterPermanent = filterPermanent;
|
||||
this.combatOnly = combatOnly;
|
||||
setTriggerPhrase("Whenever " + filterPermanent.getMessage() + " deals "
|
||||
+ (combatOnly ? "combat " : "") + "damage to a {this}, ");
|
||||
setTriggerPhrase("Whenever " + CardUtil.addArticle(filterPermanent.getMessage()) + " deals "
|
||||
+ (combatOnly ? "combat " : "") + "damage to {this}, ");
|
||||
}
|
||||
|
||||
protected DealsDamageToThisAllTriggeredAbility(final DealsDamageToThisAllTriggeredAbility ability) {
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public abstract class TargetImpl implements Target {
|
|||
if (min > 0 && max == Integer.MAX_VALUE) {
|
||||
sb.append(CardUtil.numberToText(min));
|
||||
sb.append(" or more ");
|
||||
} else if (!getTargetName().startsWith("X") && (min != 1 || max != 1)) {
|
||||
} else if (!getTargetName().contains("X") && (min != 1 || max != 1)) {
|
||||
if (min < max && max != Integer.MAX_VALUE) {
|
||||
if (min == 1 && max == 2) {
|
||||
sb.append("one or ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue