From b5ea5e1bc66f90cf3644dabac2d9c00697e68d4d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 5 Nov 2009 14:51:19 -0600 Subject: Create an is_evil() function in the actor interface. Currently, only unholy monsters are marked as evil this way. --- crawl-ref/source/religion.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 9b971986f2..3b3d42f106 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -7427,7 +7427,7 @@ bool tso_unchivalric_attack_safe_monster(const monsters *mon) { const mon_holy_type holiness = mon->holiness(); return (mons_intel(mon) < I_NORMAL - || mons_is_evil(mon) + || mon->is_evil() || holiness != MH_NATURAL && holiness != MH_HOLY); } -- cgit v1.2.3-54-g00ecf