summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-26 20:19:44 -0400
committerNeil Moore <neil@s-z.org>2014-07-26 21:30:59 -0400
commitd5a498d7779dc8482a0f5a3617df791904db4ecc (patch)
tree0ef802267779a049c82a5e12148778ce2aa433bf /crawl-ref/source/mon-behv.cc
parent03ece1401eba611041d179c21c966bc6896dcc3d (diff)
downloadcrawl-ref-d5a498d7779dc8482a0f5a3617df791904db4ecc.tar.gz
crawl-ref-d5a498d7779dc8482a0f5a3617df791904db4ecc.zip
Don't kill the player with zotdef rotting until 0 mhp.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index f5978d52e0..d4228d9117 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -285,7 +285,7 @@ void handle_behaviour(monster* mon)
// If the rot would reduce us to <= 0 max HP, attribute the
// kill to the monster.
- if (loss >= you.hp_max_temp)
+ if (loss >= you.hp_max)
ouch(loss, mon->mindex(), KILLED_BY_ROTTING);
rot_hp(loss);