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:
Neil Gentleman 2016-07-15 22:17:13 -07:00
parent 296e0a9a49
commit 813c8cdd8a
79 changed files with 142 additions and 148 deletions

View file

@ -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");
}