summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 22:28:11 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 22:28:11 +0000
commitc067a7b8496eedb4b1b06f16bfc70c333a9a823a (patch)
tree3efafbb0f1a360051208575243783eab56913655 /crawl-ref/source/spl-cast.cc
parent4ca6e6f54fb244d70988222430738af0409de498 (diff)
downloadcrawl-ref-c067a7b8496eedb4b1b06f16bfc70c333a9a823a.tar.gz
crawl-ref-c067a7b8496eedb4b1b06f16bfc70c333a9a823a.zip
Mummies don't hunger from spellcasting.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1738 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index f587595fe4..b45e069e1e 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -3502,6 +3502,9 @@ const char* failure_rate_to_string( int fail )
const char* spell_hunger_string( spell_type spell )
{
+ if ( you.is_undead == US_UNDEAD )
+ return "N/A";
+
const int hunger = spell_hunger(spell);
if ( hunger == 0 )
return "None";