From 818897f487f9c26bb552100d30fae022fd603317 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 7 Feb 2009 22:11:14 +0000 Subject: Fix neutralization of Xom-worshipping holy beings again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8963 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 80e65f6188..0600a138ba 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -829,8 +829,7 @@ void dec_penance(god_type god, int val) you.redraw_armour_class = true; // When you've worked through all your penance, you get - // another chance to make hostile holy beings that worship a - // good god good neutral. + // another chance to make hostile holy beings good neutral. if (is_good_god(you.religion)) _holy_beings_attitude_change(); } @@ -3351,8 +3350,7 @@ void gain_piety(int pgn) } // When you gain a piety level, you get another chance to - // make hostile holy beings that worship a good god good - // neutral. + // make hostile holy beings good neutral. if (is_good_god(you.religion)) _holy_beings_attitude_change(); } @@ -3373,8 +3371,7 @@ void gain_piety(int pgn) } // When you gain piety of more than 160, you get another chance - // to make hostile holy beings that worship a good god good - // neutral. + // to make hostile holy beings good neutral. if (is_good_god(you.religion)) _holy_beings_attitude_change(); } @@ -4947,8 +4944,7 @@ static bool _holy_beings_on_level_attitude_change() { monsters *monster = &menv[i]; if (monster->alive() - && mons_is_holy(monster) - && is_good_god(monster->god)) + && mons_is_holy(monster)) { #ifdef DEBUG_DIAGNOSTICS mprf(MSGCH_DIAGNOSTICS, "Holy attitude changing: %s on level %d, branch %d", @@ -4958,8 +4954,7 @@ static bool _holy_beings_on_level_attitude_change() #endif // If you worship a good god, you get another chance to make - // neutral and hostile holy beings that worship a good god - // good neutral. + // neutral and hostile holy beings good neutral. if (is_good_god(you.religion) && !mons_wont_attack(monster)) { if (testbits(monster->flags, MF_ATT_CHANGE_ATTEMPT)) @@ -4972,7 +4967,8 @@ static bool _holy_beings_on_level_attitude_change() // If you don't worship a good god, you make all friendly // and good neutral holy beings that worship a good god // hostile. - else if (!is_good_god(you.religion) && mons_wont_attack(monster)) + else if (!is_good_god(you.religion) && mons_wont_attack(monster) + && is_good_god(monster->god)) { monster->attitude = ATT_HOSTILE; monster->del_ench(ENCH_CHARM, true); -- cgit v1.2.3-54-g00ecf