From 9338556ebf846bbc4176134e3846ef6699e8434b Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Mon, 9 Nov 2009 14:33:06 +0300 Subject: Replace mons_wont_attack with monsters::wont_attack. --- crawl-ref/source/spells1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 4cb64dcd99..b3222f3817 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -688,7 +688,7 @@ void big_cloud(cloud_type cl_type, kill_category whose, killer_type killer, static bool _mons_hostile(const monsters *mon) { // Needs to be done this way because of friendly/neutral enchantments. - return (!mons_wont_attack(mon) && !mon->neutral()); + return (!mon->wont_attack() && !mon->neutral()); } static bool _can_pacify_monster(const monsters *mon, const int healed) @@ -1138,7 +1138,7 @@ void abjuration(int pow) if (monster->type == MONS_NO_MONSTER || !mons_near(monster)) continue; - if (mons_wont_attack(monster)) + if (monster->wont_attack()) continue; int duration; -- cgit v1.2.3-54-g00ecf