summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-08 19:35:30 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-08 19:35:30 +0000
commit95e59f96be707defda5bc535d5e72b2f96fc0b21 (patch)
tree12b5e954c5126f1029f9d3a5e9cfdfaf63242b15 /crawl-ref/source/monstuff.cc
parent2408978589f3e2b17fb874dc88137a7c0747af7c (diff)
downloadcrawl-ref-95e59f96be707defda5bc535d5e72b2f96fc0b21.tar.gz
crawl-ref-95e59f96be707defda5bc535d5e72b2f96fc0b21.zip
Clean up "Death Channel" some more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5603 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 589a3da109..b698997be7 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1003,13 +1003,15 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
&& mons_weight(mons_species(monster->type)))
{
const monster_type spectre = mons_species(monster->type);
+ const bool god_gift = you.attribute[ATTR_DIVINE_DEATH_CHANNEL];
+
// Don't allow 0-headed hydras to become spectral hydras.
if ((spectre != MONS_HYDRA || monster->number)
&& create_monster(
mgen_data( MONS_SPECTRAL_THING, BEH_FRIENDLY,
0, monster->pos(), you.pet_target,
- 0, spectre,
- monster->number )) != -1)
+ god_gift ? MF_GOD_GIFT : 0,
+ spectre, monster->number )) != -1)
{
if (death_message)
mpr("A glowing mist starts to gather...");