Fixed text with html that couldn't display html.

This commit is contained in:
LevelX2 2015-05-29 00:26:51 +02:00
parent 5a5722b248
commit b25c1ded7b

View file

@ -334,7 +334,7 @@ public abstract class AbilityImpl implements Ability {
}
if (getTargets().size() > 0 && getTargets().chooseTargets(getEffects().get(0).getOutcome(), this.controllerId, this, game) == false) {
if ((variableManaCost != null || announceString != null) && !game.isSimulation()) {
game.informPlayer(controller, new StringBuilder(sourceObject != null ? sourceObject.getLogName(): "").append(": no valid targets with this value of X").toString());
game.informPlayer(controller, (sourceObject != null ? sourceObject.getIdName(): "") + ": no valid targets with this value of X");
}
return false; // when activation of ability is canceled during target selection
}