mirror of
https://github.com/correl/mage.git
synced 2025-01-14 03:00:10 +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);
|
MageObject object = game.getObject(sourceId);
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
if (object != null) {
|
if (object != null) {
|
||||||
sb.append("Use ").append(this.getRule(object.getName())).append("ability");
|
sb.append("Use the following ability from ").append(object.getName()).append("? ");
|
||||||
sb.append(" from ").append(object.getName());
|
sb.append(this.getRule(object.getName()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sb.append("Use ").append(this.getRule()).append("ability");
|
sb.append("Use the following ability? ").append(this.getRule());
|
||||||
}
|
}
|
||||||
sb.append("?");
|
sb.append("?");
|
||||||
if (!player.chooseUse(getEffects().get(0).getOutcome(), sb.toString(), game)) {
|
if (!player.chooseUse(getEffects().get(0).getOutcome(), sb.toString(), game)) {
|
||||||
|
|
Loading…
Reference in a new issue