* Gonti’s Machinations - Fixed that it triggered more than once per turn.

This commit is contained in:
LevelX2 2017-01-20 00:34:45 +01:00
parent 16648e53d1
commit d68ff964fb
2 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ public class SacrificeTargetCost extends CostImpl {
target.setNotTarget(true); // sacrifice is never targeted
this.text = "sacrifice "
+ ((target.getNumberOfTargets() != 1 || (target.getTargetName().startsWith("an") || target.getTargetName().startsWith("a ")))
? "" : "a ") + target.getTargetName();
? "" : (target.getTargetName().startsWith("artifact") ? "an " : "a ")) + target.getTargetName();
target.setTargetName(target.getTargetName() + " (to sacrifice)");
}
@ -123,4 +123,4 @@ public class SacrificeTargetCost extends CostImpl {
public List<Permanent> getPermanents() {
return permanents;
}
}
}