summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 07:13:12 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 07:13:12 +0000
commitbae5b88570c9da4e2529f0dd4e8cab25e7c5cef1 (patch)
treefaaaabbcb8c71e596ad29378e94502e5c185cbe4 /crawl-ref/source/spl-cast.cc
parent2bd3b24f23f2f13871f1d606237b1487a72136af (diff)
downloadcrawl-ref-bae5b88570c9da4e2529f0dd4e8cab25e7c5cef1.tar.gz
crawl-ref-bae5b88570c9da4e2529f0dd4e8cab25e7c5cef1.zip
Bug 2007644: necromanctic miscasts could cause an undead player to rot
even though the undead should be immune to rotting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6328 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 237b1e1c53..92c4499f7a 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -2961,7 +2961,10 @@ static void _miscast_necromancy(int severity, const char* cause)
break;
case 2:
// josh declares mummies cannot smell {dlb}
- if (player_can_smell())
+ if (player_can_smell()
+ && !(you.is_undead
+ && (you.is_undead != US_SEMI_UNDEAD
+ || you.hunger_state < HS_SATIATED) ))
{
mpr("You smell decay."); // identical to a harmless message
you.rotting++;