mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Attempting to improve feedback notification messages for Munda, Ambush Leader and other similar cards.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user