forked from External/mage
text fixes [WOE] etc. (#11035)
* Fix Callous Sell Sword text * simple text fixes * fix some target texts
This commit is contained in:
parent
c4e48a6f95
commit
a9870b6ff8
14 changed files with 58 additions and 18 deletions
|
|
@ -119,7 +119,19 @@ public abstract class TargetImpl implements Target {
|
|||
sb.append(CardUtil.numberToText(max));
|
||||
sb.append(' ');
|
||||
}
|
||||
if (!isNotTarget() && !getTargetName().contains("target ") && !getTargetName().endsWith("any target")) {
|
||||
boolean addTargetWord = false;
|
||||
if (!isNotTarget()) {
|
||||
addTargetWord = true;
|
||||
if (getTargetName().contains("target ")) {
|
||||
addTargetWord = false;
|
||||
} else if (getTargetName().endsWith("any target")
|
||||
|| getTargetName().endsWith("any other target")) {
|
||||
addTargetWord = false;
|
||||
}
|
||||
// endsWith needs to be specific.
|
||||
// e.g. "spell with a single target" => need to prefix with "target ".
|
||||
}
|
||||
if (addTargetWord) {
|
||||
sb.append("target ");
|
||||
}
|
||||
if (isNotTarget() && min == 1 && max == 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue