summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-04 02:24:58 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-04 02:25:24 -0800
commit30387f6a8372b62160a6c2a4441a1b5909538055 (patch)
treec742100bf2aadfddd53e496e9798acce4f7879b7 /crawl-ref/source/monster.cc
parentb6bb6178f82fc4227a63414e4bec9d2916e2a9b0 (diff)
downloadcrawl-ref-30387f6a8372b62160a6c2a4441a1b5909538055.tar.gz
crawl-ref-30387f6a8372b62160a6c2a4441a1b5909538055.zip
Disintegration can be very messy.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 319e256d5a..1ad06936d4 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -3267,6 +3267,15 @@ int monsters::hurt(const actor *agent, int amount, beam_type flavour,
hit_points = max_hit_points;
}
+ if (flavour == BEAM_NUKE || flavour == BEAM_DISINTEGRATION)
+ {
+ if (can_bleed())
+ blood_spray(pos(), id(), amount / 5);
+
+ if (!alive())
+ flags |= MF_EXPLODE_KILL;
+ }
+
// Allow the victim to exhibit passive damage behaviour (royal
// jelly).
kill_category whose = (agent == NULL) ? KC_OTHER :