forked from External/mage
[ALA] various text fixes
This commit is contained in:
parent
670c2a5615
commit
edaaac53d9
33 changed files with 185 additions and 248 deletions
|
|
@ -118,11 +118,12 @@ public class CreateTokenEffect extends OneShotEffect {
|
|||
}
|
||||
StringBuilder sb = new StringBuilder("create ");
|
||||
if (amount.toString().equals("1")) {
|
||||
sb.append("a ");
|
||||
if (tapped && !attacking) {
|
||||
sb.append("tapped ");
|
||||
sb.append("a tapped ");
|
||||
sb.append(token.getDescription());
|
||||
} else {
|
||||
sb.append(CardUtil.addArticle(token.getDescription()));
|
||||
}
|
||||
sb.append(token.getDescription());
|
||||
} else {
|
||||
sb.append(CardUtil.numberToText(amount.toString())).append(' ');
|
||||
if (tapped && !attacking) {
|
||||
|
|
|
|||
|
|
@ -1,26 +1,23 @@
|
|||
|
||||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DestroyAllControlledTargetEffect extends OneShotEffect {
|
||||
|
||||
private FilterPermanent filter;
|
||||
private final FilterPermanent filter;
|
||||
|
||||
public DestroyAllControlledTargetEffect(FilterPermanent filter) {
|
||||
super(Outcome.DestroyPermanent);
|
||||
this.filter = filter;
|
||||
staticText = "Destroy all " + filter.getMessage() + " controlled by target player";
|
||||
staticText = "Destroy all " + filter.getMessage() + " target player controls";
|
||||
}
|
||||
|
||||
public DestroyAllControlledTargetEffect(final DestroyAllControlledTargetEffect effect) {
|
||||
|
|
@ -35,10 +32,9 @@ public class DestroyAllControlledTargetEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game)) {
|
||||
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game)) {
|
||||
permanent.destroy(source, game, false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ public class MayTapOrUntapTargetEffect extends OneShotEffect {
|
|||
if (mode.getTargets().isEmpty()) {
|
||||
return "you may tap or untap it";
|
||||
} else {
|
||||
return "you may tap or untap target " + mode.getTargets().get(0).getTargetName();
|
||||
String targetName = mode.getTargets().get(0).getTargetName();
|
||||
return "you may tap or untap " + (targetName.contains("target") ? "" : "target ") + targetName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,11 +51,12 @@ public class MillCardsTargetEffect extends OneShotEffect {
|
|||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("target ");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!mode.getTargets().isEmpty()) {
|
||||
sb.append("target ");
|
||||
sb.append(mode.getTargets().get(0).getTargetName());
|
||||
} else {
|
||||
sb.append("player");
|
||||
sb.append("that player");
|
||||
}
|
||||
sb.append(" mills ");
|
||||
if (numberCards.toString().equals("1")) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public class ReturnToHandFromBattlefieldAllEffect extends OneShotEffect {
|
|||
public ReturnToHandFromBattlefieldAllEffect(FilterPermanent filter) {
|
||||
super(Outcome.ReturnToHand);
|
||||
this.filter = filter;
|
||||
staticText = "Return all " + filter.getMessage() + " to their owners' hands";
|
||||
staticText = "return all " + filter.getMessage() + " to their owners' hands";
|
||||
}
|
||||
|
||||
public ReturnToHandFromBattlefieldAllEffect(final ReturnToHandFromBattlefieldAllEffect effect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue