summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 758879ac85..6c5bc8c5a9 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -7949,7 +7949,7 @@ item_type_id_state_type monsters::drink_potion_effect(potion_type ptype)
void monsters::react_to_damage(int damage, beam_type flavour)
{
// The royal jelly objects to taking damage and will SULK. :-)
- if (type == MONS_ROYAL_JELLY && flavour != BEAM_TORMENT_DAMAGE && alive()
+ if (alive() && type == MONS_ROYAL_JELLY && flavour != BEAM_TORMENT_DAMAGE
&& damage > 8 && x_chance_in_y(damage, 50))
{
mon_acting mact(this);