|
From: <gi...@cr...> - 2012-02-26 23:32:31
|
via 3546c0aef71de92b5a4bd843d7f95a84302c9878 (commit)
from a4516dc2581b8ad765656d48f321ff32e832c603 (commit)
-----------------------------------------------------------------------
commit 3546c0aef71de92b5a4bd843d7f95a84302c9878
Author: David Lawrence Ramsey <dol...@us...>
Date: Sun Feb 26 17:30:18 2012 -0600
And put in proper shims for Detect Items and Detect Creatures cast attempts.
-----------------------------------------------------------------------
Summary of changes:
crawl-ref/source/spl-cast.cc | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index e7f5793..b4b83e0 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1628,6 +1628,16 @@ static spret_type _do_cast(spell_type spell, int powc,
case SPELL_CONTROLLED_BLINK:
return cast_controlled_blink(powc, fail);
+#if TAG_MAJOR_VERSION == 32
+ case SPELL_DETECT_ITEMS:
+ mpr("Sorry, this spell is gone!");
+ return SPRET_ABORT;
+
+ case SPELL_DETECT_CREATURES:
+ mpr("Sorry, this spell is gone!");
+ return SPRET_ABORT;
+#endif
+
case SPELL_PROJECTED_NOISE:
return project_noise(fail);
--
Dungeon Crawl Stone Soup
|