diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 18:10:17 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 18:10:17 +0000 |
commit | 2ef8bb80a61c7b8aec6264babac49b04de264e96 (patch) | |
tree | 3868b1eb3a4b0dcb714e138339e7c83f5f186edc /crawl-ref | |
parent | ab17d3586c568a0d6eaf9569ed2a1cc793d85c6e (diff) | |
download | crawl-ref-2ef8bb80a61c7b8aec6264babac49b04de264e96.tar.gz crawl-ref-2ef8bb80a61c7b8aec6264babac49b04de264e96.zip |
Properly mark zombies created by a priest as god gifts.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5665 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/mstuff2.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc index e6aa5fbbb8..f0dfdc4845 100644 --- a/crawl-ref/source/mstuff2.cc +++ b/crawl-ref/source/mstuff2.cc @@ -511,8 +511,8 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast) // XXX: Mark summoned creatures from priestly monsters as god gifts. // Once monsters can worship gods (and, presumably, get invocation // lists), this should no longer be needed. - const unsigned flags = - (mons_class_flag(monster->type, M_PRIEST)) ? MG_GOD_GIFT : 0; + const bool is_priest = (mons_class_flag(monster->type, M_PRIEST)); + const unsigned flags = (is_priest) ? MG_GOD_GIFT : 0; #if DEBUG_DIAGNOSTICS mprf(MSGCH_DIAGNOSTICS, "Mon #%d casts %s (#%d)", @@ -653,7 +653,7 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast) case SPELL_ANIMATE_DEAD: // see special handling in monstuff::handle_spell() {dlb} animate_dead(monster, 5 + random2(5), SAME_ATTITUDE(monster), - monster->foe); + monster->foe, is_priest); return; case SPELL_CALL_IMP: // class 5 demons |