- Attempting to improve feedback notification messages for Munda, Ambush Leader and other similar cards.

This commit is contained in:
Agetian
2017-06-26 19:25:07 +00:00
parent 3e8059db10
commit 83d34ee456
3 changed files with 10 additions and 3 deletions

View File

@@ -265,7 +265,9 @@ public class DigEffect extends SpellAbilityEffect {
chosen = chooser.getController().chooseSingleEntityForEffect(valid, shouldReveal ? delayedReveal : null, sa, prompt, anyNumber || optional, p);
}
else {
chooser.getController().notifyOfValue(sa, null, "No valid cards");
if (i == 0) {
chooser.getController().notifyOfValue(sa, null, "No valid cards");
}
}
if (chosen == null) {

View File

@@ -54,7 +54,12 @@ public class MessageUtil {
String chooser = StringUtils.capitalize(mayBeYou(player, target));
return String.format("%s %s %s", chooser, Lang.joinVerb(chooser, "vote"), value);
default:
return String.format("%s effect's value for %s is %s", sa.getHostCard().getName(), mayBeYou(player, target), value);
String tgt = mayBeYou(player, target);
if (tgt.equals("(null)")) {
return String.format("%s effect's value is %s", sa.getHostCard().getName(), value);
} else {
return String.format("%s effect's value for %s is %s", sa.getHostCard().getName(), tgt, value);
}
}
}