summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-03 22:04:54 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-03 22:04:54 +0000
commit3ede9fff7fa316a1d441a840533613226b720e8a (patch)
tree26b9d64c81d50d4a162b45bd9a5455b5d67343ab /crawl-ref/source/acr.cc
parentf40a57bf2ed015c5e1489c966987878f3d62d450 (diff)
downloadcrawl-ref-3ede9fff7fa316a1d441a840533613226b720e8a.tar.gz
crawl-ref-3ede9fff7fa316a1d441a840533613226b720e8a.zip
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
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc3
1 files changed, 2 insertions, 1 deletions
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;