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/misc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/misc.cc') diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 64e2b9c7f0..55a02e4e43 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -2772,7 +2772,7 @@ bool mons_is_safe(const monsters *mon, bool want_move, { int dist = grid_distance(you.pos(), mon->pos()); - bool is_safe = (mons_wont_attack(mon) + bool is_safe = (mon->wont_attack() || mons_class_flag(mon->type, M_NO_EXP_GAIN) && mon->type != MONS_KRAKEN_TENTACLE || mons_is_pacified(mon) && dist > 1 @@ -3170,7 +3170,7 @@ bool stop_attack_prompt(const monsters *mon, bool beam_attack, const bool mon_target = (beam_target == mon->pos()); const bool inSanctuary = (is_sanctuary(you.pos()) || is_sanctuary(mon->pos())); - const bool wontAttack = mons_wont_attack(mon); + const bool wontAttack = mon->wont_attack(); const bool isFriendly = mon->friendly(); const bool isNeutral = mon->neutral(); const bool isUnchivalric = is_unchivalric_attack(&you, mon); -- cgit v1.2.3-54-g00ecf