mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
CreateTokenEffect already adds the article
don't want to end up with "a a 3/3 colorless Golem" and also fixed fix tapped token rules text, which has changed
This commit is contained in:
parent
296e0a9a49
commit
813c8cdd8a
79 changed files with 142 additions and 148 deletions
|
|
@ -111,19 +111,24 @@ public class CreateTokenEffect extends OneShotEffect {
|
|||
private void setText() {
|
||||
StringBuilder sb = new StringBuilder("create ");
|
||||
if (amount.toString().equals("1")) {
|
||||
sb.append("a ").append(token.getDescription());
|
||||
sb.append("a ");
|
||||
if (tapped && !attacking) {
|
||||
sb.append("tapped ");
|
||||
}
|
||||
sb.append(token.getDescription());
|
||||
} else {
|
||||
sb.append(CardUtil.numberToText(amount.toString())).append(" ").append(token.getDescription());
|
||||
sb.append(CardUtil.numberToText(amount.toString())).append(" ");
|
||||
if (tapped && !attacking) {
|
||||
sb.append("tapped ");
|
||||
}
|
||||
sb.append(token.getDescription());
|
||||
if (token.getDescription().endsWith("token")) {
|
||||
sb.append("s ");
|
||||
}
|
||||
}
|
||||
if (tapped) {
|
||||
sb.append(" tapped");
|
||||
}
|
||||
if (attacking) {
|
||||
if (tapped) {
|
||||
sb.append(" and");
|
||||
sb.append(" tapped and");
|
||||
}
|
||||
sb.append(" attacking");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,11 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.GermToken;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.players.Player;
|
||||
|
||||
public class LivingWeaponAbility extends EntersBattlefieldTriggeredAbility {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public class GolemToken extends Token {
|
|||
}
|
||||
|
||||
public GolemToken(String setCode) {
|
||||
super("Golem", "a 3/3 colorless Golem artifact creature token");
|
||||
super("Golem", "3/3 colorless Golem artifact creature token");
|
||||
setOriginalExpansionSetCode(setCode);
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import mage.constants.CardType;
|
|||
public class WurmToken extends Token {
|
||||
|
||||
public WurmToken() {
|
||||
super("Wurm", "a 6/6 green Wurm creature token");
|
||||
super("Wurm", "6/6 green Wurm creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add("Wurm");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue