fixed broken tests

This commit is contained in:
Evan Kranzler 2019-01-15 19:43:41 -05:00
parent 722e44ff2e
commit 335dab7160

View file

@ -27,14 +27,14 @@ public class SacrificeTargetCost extends CostImpl {
this.addTarget(target);
target.setNotTarget(true); // sacrifice is never targeted
this.text = "sacrifice "
+ ((target.getNumberOfTargets() != 1
|| (target.getTargetName().startsWith("an")
+ ((target.getNumberOfTargets() != 1
|| (target.getTargetName().startsWith("an")
|| target.getTargetName().startsWith("a ")))
? (target.getMinNumberOfTargets() == target.getMaxNumberOfTargets()
&& target.getMinNumberOfTargets() > 1
? CardUtil.numberToText(target.getNumberOfTargets()) : "" )
: (target.getTargetName().startsWith("artifact") ? "an " : "a "))
+ " " + target.getTargetName();
? (target.getMinNumberOfTargets() == target.getMaxNumberOfTargets()
&& target.getMinNumberOfTargets() > 1
? CardUtil.numberToText(target.getNumberOfTargets()) : "")
: (target.getTargetName().startsWith("artifact") ? "an " : "a "))
+ target.getTargetName();
target.setTargetName(target.getTargetName() + " (to sacrifice)");
}