- Support CARDNAME generalization in the optional prompt for AB Dig.

This commit is contained in:
Agetian
2015-09-23 06:40:35 +00:00
parent 6e3eac1258
commit fe9ac18f44
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ public class DigEffect extends SpellAbilityEffect {
// Optional abilities that use a dialog box to prompt the user to skip the ability (e.g. Explorer's Scope, Quest for Ula's Temple)
if (optional && mayBeSkipped && !valid.isEmpty()) {
String prompt = !optionalAbilityPrompt.isEmpty() ? optionalAbilityPrompt : "Would you like to proceed with the optional ability for " + sa.getHostCard() + "?\n\n(" + sa.getDescription() + ")";
if (!p.getController().confirmAction(sa, null, prompt)) {
if (!p.getController().confirmAction(sa, null, prompt.replace("CARDNAME", sa.getHostCard().getName()))) {
return;
}
}