summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
authorEduardo Gonzalez <ed.gonzalez3@gmail.com>2014-05-02 23:42:01 -0700
committerShmuale Mark <shm.mark@gmail.com>2014-05-04 03:01:04 -0400
commit153a95ed1777392a10c4324353197aa3e154f288 (patch)
treee9be2820e20c0da80d01f1f8ccd774e0dd68aab9 /crawl-ref/source/mon-abil.cc
parent90ae437c9b4a4ec131d75d9dfd3060fb56b40978 (diff)
downloadcrawl-ref-153a95ed1777392a10c4324353197aa3e154f288.tar.gz
crawl-ref-153a95ed1777392a10c4324353197aa3e154f288.zip
Lost soul spectralization retains monster's god (#8487)
Lost souls also now ignore worshippers of good gods, though legal targets would only be generated by vault definitions. This should help spectralized death knights using pain mirror make more sense.
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index efd0ef6752..23960f04ca 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -1899,6 +1899,7 @@ static bool _lost_soul_affectable(const monster* mons)
&& mons->type != MONS_LOST_SOUL
&& !mons_is_zombified(mons))
||(mons->holiness() == MH_NATURAL
+ && !is_good_god(mons->god)
&& mons_can_be_zombified(mons)))
&& !mons->is_summoned()
&& !mons_class_flag(mons->type, M_NO_EXP_GAIN);
@@ -2050,7 +2051,7 @@ bool lost_soul_spectralize(monster* mons)
mi->flags |= MF_NO_REWARD | MF_SEEN;
mi->flags |= mons->flags & (MF_MELEE_MASK | MF_SPELL_MASK);
mi->spells = mons->spells;
- mi->god = GOD_NAMELESS;
+ mi->god = mons->god;
name_zombie(*mi, mons);
invalidate_agrid();