mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
fixed broken tests
This commit is contained in:
parent
722e44ff2e
commit
335dab7160
1 changed files with 7 additions and 7 deletions
|
@ -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)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue