[Hide Content]From d6949d3aacdcfef6f81796501527f3ed3450388a Mon Sep 17 00:00:00 2001
From: BlackSheep <chris.terenzi@gmail.com>
Date: Sun, 14 Apr 2013 12:05:36 -0400
Subject: [PATCH] Make scrolls of amnesia display the spell list immediately
instead of just a message prompt.
---
crawl-ref/source/spl-selfench.cc | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc
index 94aaadc..2753e24 100644
--- a/crawl-ref/source/spl-selfench.cc
+++ b/crawl-ref/source/spl-selfench.cc
@@ -269,11 +269,12 @@ int cast_selective_amnesia(string *pre_msg)
int slot;
// Pick a spell to forget.
+ mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT);
+ keyin = list_spells(false, false, false);
+ redraw_screen();
+
while (true)
{
- mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT);
- keyin = get_ch();
-
if (key_is_escape(keyin))
{
canned_msg(MSG_OK);
@@ -289,6 +290,7 @@ int cast_selective_amnesia(string *pre_msg)
if (!isaalpha(keyin))
{
mesclr();
+ keyin = get_ch();
continue;
}
@@ -296,7 +298,11 @@ int cast_selective_amnesia(string *pre_msg)
slot = get_spell_slot_by_letter(keyin);
if (spell == SPELL_NO_SPELL)
+ {
mpr("You don't know that spell.");
+ mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT);
+ keyin = get_ch();
+ }
else
break;
}
--
1.7.9.5