summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/monstuff.cc4
-rw-r--r--crawl-ref/source/religion.cc3
2 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index edf4a1e124..98cf149102 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -893,7 +893,7 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
monster->hit_dice, true, monster);
}
- if (mons_class_flag(monster->type, M_EVIL)
+ if (mons_is_evil(monster)
&& mons_holiness(monster) == MH_NATURAL)
{
did_god_conduct(DID_KILL_NATURAL_EVIL,
@@ -1067,7 +1067,7 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
notice |= did_god_conduct( DID_LIVING_KILLED_BY_SERVANT,
monster->hit_dice );
- if (mons_class_flag( monster->type, M_EVIL ))
+ if (mons_is_evil(monster))
{
notice |=
did_god_conduct(
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 7fb387ea2f..5a2b02235e 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -5962,5 +5962,6 @@ int piety_breakpoint(int i)
bool tso_unchivalric_attack_safe_monster(const monsters *mon)
{
const mon_holy_type holiness = mon->holiness();
- return (holiness != MH_NATURAL && holiness != MH_HOLY);
+ return (mons_is_evil(mon)
+ || (holiness != MH_NATURAL && holiness != MH_HOLY));
}