forked from External/mage
text fixes
This commit is contained in:
parent
d37b760167
commit
f7340a946e
10 changed files with 42 additions and 64 deletions
|
|
@ -24,11 +24,9 @@ public class TapTargetCost extends CostImpl {
|
|||
this.target = target;
|
||||
this.target.setNotTarget(true); // costs are never targeted
|
||||
this.target.setRequired(false); // can be cancel by user
|
||||
this.text
|
||||
= new StringBuilder("tap ")
|
||||
.append((target.getTargetName().startsWith("a ") || target.getTargetName().startsWith("an ") || target.getTargetName().startsWith("another"))
|
||||
? "" : CardUtil.numberToText(target.getMaxNumberOfTargets()) + ' ')
|
||||
.append(target.getTargetName()).toString();
|
||||
this.text = "tap " + (target.getNumberOfTargets() > 1
|
||||
? CardUtil.numberToText(target.getMaxNumberOfTargets()) + ' ' + target.getTargetName()
|
||||
: CardUtil.addArticle(target.getTargetName()));
|
||||
}
|
||||
|
||||
public TapTargetCost(final TapTargetCost cost) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue