mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
* 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:
parent
b637d2c65c
commit
fbb3929d0a
26 changed files with 179 additions and 92 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue