mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Made optional message from TriggeredAbility more user friendly.
This commit is contained in:
parent
ee7a178937
commit
7053c84ded
1 changed files with 3 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue