* 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

@ -124,6 +124,7 @@ class GontisMachinationsFirstLostLifeThisTurnWatcher extends Watcher {
public GontisMachinationsFirstLostLifeThisTurnWatcher(final GontisMachinationsFirstLostLifeThisTurnWatcher watcher) {
super(watcher);
this.playersLostLife.putAll(watcher.playersLostLife);
}
@Override

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;
}
}
}