summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-death.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-05-23 16:54:23 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-05-23 16:56:49 +0100
commitc80920707aad53cfe7c1368a4d0b0824573c6b53 (patch)
tree2235d16a7a05a790a326f0e68c70d6e176d7ed78 /crawl-ref/source/mon-death.cc
parentf040398a199a9f2bda755c0802287558edecba2e (diff)
downloadcrawl-ref-c80920707aad53cfe7c1368a4d0b0824573c6b53.tar.gz
crawl-ref-c80920707aad53cfe7c1368a4d0b0824573c6b53.zip
Don't trigger PbD on gold corpses
Diffstat (limited to 'crawl-ref/source/mon-death.cc')
-rw-r--r--crawl-ref/source/mon-death.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-death.cc b/crawl-ref/source/mon-death.cc
index 4433ae2c56..eac1e173d2 100644
--- a/crawl-ref/source/mon-death.cc
+++ b/crawl-ref/source/mon-death.cc
@@ -2554,7 +2554,9 @@ int monster_die(monster* mons, killer_type killer,
|| killer == KILL_YOU_MISSILE
|| killer == KILL_YOU_CONF
|| pet_kill)
- && corpse >= 0 && player_mutation_level(MUT_POWERED_BY_DEATH))
+ && corpse >= 0
+ && mitm[corpse].base_type != OBJ_GOLD
+ && player_mutation_level(MUT_POWERED_BY_DEATH))
{
const int pbd_dur = player_mutation_level(MUT_POWERED_BY_DEATH) * 8
+ roll_dice(2, 8);
@@ -2562,7 +2564,7 @@ int monster_die(monster* mons, killer_type killer,
you.set_duration(DUR_POWERED_BY_DEATH, pbd_dur);
}
- if (corpse >= 0)
+ if (corpse >= 0 && mitm[corpse].base_type != OBJ_GOLD)
{
// Powered by death.
// Find nearby putrid demonspawn.