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/view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/view.cc') diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 99a7b0cb17..a97911d0ba 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -547,7 +547,7 @@ bool check_awaken(monsters* monster) && you.can_see(monster) // to avoid leaking information && you.burden_state == BS_UNENCUMBERED && !you.attribute[ATTR_SHADOWS] - && !mons_wont_attack(monster) + && !monster->wont_attack() && !mons_class_flag(monster->type, M_NO_EXP_GAIN) // If invisible, training happens much more rarely. && (!unnatural_stealthy && one_chance_in(25) || one_chance_in(100))) @@ -1010,7 +1010,7 @@ bool mon_enemies_around(const monsters *monster) // we don't have one. return (false); } - else if (mons_wont_attack(monster)) + else if (monster->wont_attack()) { // Additionally, if an ally is nearby and *you* have a foe, // consider it as the ally's enemy too. -- cgit v1.2.3-54-g00ecf