summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 35365fd302..3266512406 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1910,7 +1910,7 @@ bool cast_sanctuary(const int power)
mon->behaviour = BEH_SEEK;
behaviour_event(mon, ME_EVAL, MHITYOU);
}
- else if (!mons_wont_attack(mon))
+ else if (!mon->wont_attack())
{
if (mons_is_mimic(mon->type))
{