summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index f89ebc2d1c..f93d3d8016 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3774,8 +3774,8 @@ static int affect_monster(bolt &beam, monsters *mon)
if (mons_friendly( mon ) && beam.flavour != BEAM_CHARM)
did_god_conduct( DID_ATTACK_FRIEND, 5, true, mon );
-
- if (mons_holiness( mon ) == MH_HOLY)
+
+ if (mons_is_holy( mon ))
did_god_conduct( DID_ATTACK_HOLY, mon->hit_dice, true, mon );
if (you.religion == GOD_BEOGH && mons_species(mon->type) == MONS_ORC
@@ -3940,11 +3940,11 @@ static int affect_monster(bolt &beam, monsters *mon)
{
remove_sanctuary(true);
}
-
+
if (mons_friendly(mon))
conduct.set( DID_ATTACK_FRIEND, 5, !okay, mon );
- if (mons_holiness( mon ) == MH_HOLY)
+ if (mons_is_holy(mon))
conduct.set( DID_ATTACK_HOLY, mon->hit_dice, !okay, mon );
}