Made optional message from TriggeredAbility more user friendly.

This commit is contained in:
North 2011-08-31 16:58:10 +03:00
parent ee7a178937
commit 7053c84ded

View file

@ -81,11 +81,11 @@ public abstract class TriggeredAbilityImpl<T extends TriggeredAbilityImpl<T>> ex
MageObject object = game.getObject(sourceId);
StringBuilder sb = new StringBuilder();
if (object != null) {
sb.append("Use ").append(this.getRule(object.getName())).append("ability");
sb.append(" from ").append(object.getName());
sb.append("Use the following ability from ").append(object.getName()).append("? ");
sb.append(this.getRule(object.getName()));
}
else {
sb.append("Use ").append(this.getRule()).append("ability");
sb.append("Use the following ability? ").append(this.getRule());
}
sb.append("?");
if (!player.chooseUse(getEffects().get(0).getOutcome(), sb.toString(), game)) {