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/monster.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/monster.cc') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index ee0e81d37d..b237a8ace3 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -2866,6 +2866,11 @@ bool monsters::strict_neutral() const return (attitude == ATT_STRICT_NEUTRAL); } +bool monsters::wont_attack() const +{ + return (friendly() || good_neutral() || strict_neutral()); +} + int monsters::shield_bonus() const { const item_def *shld = const_cast(this)->shield(); -- cgit v1.2.3-54-g00ecf