diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-04 02:24:58 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-04 02:25:24 -0800 |
commit | 30387f6a8372b62160a6c2a4441a1b5909538055 (patch) | |
tree | c742100bf2aadfddd53e496e9798acce4f7879b7 /crawl-ref/source/player.cc | |
parent | b6bb6178f82fc4227a63414e4bec9d2916e2a9b0 (diff) | |
download | crawl-ref-30387f6a8372b62160a6c2a4441a1b5909538055.tar.gz crawl-ref-30387f6a8372b62160a6c2a4441a1b5909538055.zip |
Disintegration can be very messy.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 0ec66b2678..d3dd1d6829 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6957,6 +6957,12 @@ int player::hurt(const actor *agent, int amount, beam_type flavour, ASSERT(false); ouch(amount, NON_MONSTER, KILLED_BY_SOMETHING); } + + if ((flavour == BEAM_NUKE || flavour == BEAM_DISINTEGRATION) && can_bleed()) + { + blood_spray(pos(), id(), amount / 5); + } + return (amount); } |