From 3ede9fff7fa316a1d441a840533613226b720e8a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 3 May 2009 22:04:54 +0000 Subject: Some spellcasting modifications, as discussed on c-r-d. * Spells are marked grey if you lack the necessary magic or if there are no visible monsters within range. * z bails out if there are no monsters in range * Z is the same as the old z behaviour * Wands now need to be e(V)oked. Feedback welcome! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9727 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 27c39d4abb..48f977a3d0 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1668,6 +1668,7 @@ void process_command( command_type cmd ) } case CMD_CAST_SPELL: + case CMD_FORCE_CAST_SPELL: if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BAT) { canned_msg(MSG_PRESENT_FORM); @@ -1684,7 +1685,7 @@ void process_command( command_type cmd ) if (Options.tutorial_left) Options.tut_spell_counter++; - if (!cast_a_spell()) + if (!cast_a_spell(cmd == CMD_CAST_SPELL)) flush_input_buffer( FLUSH_ON_FAILURE ); break; -- cgit v1.2.3-54-g00ecf