* Fixed some adjustTargets methods of cards were that the target adjustment could be applied to abilities not intended (fixes #1384).

This commit is contained in:
LevelX2 2015-11-25 16:30:18 +01:00
parent b637d2c65c
commit fbb3929d0a
26 changed files with 179 additions and 92 deletions

View file

@ -516,12 +516,11 @@ public abstract class AbilityImpl implements Ability {
// set the xcosts to paid
variableCost.setAmount(xValue);
((Cost) variableCost).setPaid();
String message = new StringBuilder(controller.getLogName())
.append(" announces a value of ").append(xValue).append(" (").append(variableCost.getActionText()).append(")").toString();
String message = controller.getLogName() + " announces a value of " + xValue + " (" + variableCost.getActionText() + ")";
if (announceString == null) {
announceString = message;
} else {
announceString = new StringBuilder(announceString).append(" ").append(message).toString();
announceString = announceString + " " + message;
}
}
}