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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 5df920a6e4..cc29d7f736 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4393,7 +4393,7 @@ static int _affect_monster(bolt &beam, monsters *mon, item_def *item)
if (you.religion == GOD_BEOGH
&& mons_species(mon->type) == MONS_ORC
- && mon->behaviour == BEH_SLEEP && !player_under_penance()
+ && mons_is_sleeping(mon) && !player_under_penance()
&& you.piety >= piety_breakpoint(2) && mons_near(mon))
{
hit_woke_orc = true;
@@ -4578,7 +4578,7 @@ static int _affect_monster(bolt &beam, monsters *mon, item_def *item)
}
if (you.religion == GOD_BEOGH && mons_species(mon->type) == MONS_ORC
- && mon->behaviour == BEH_SLEEP && YOU_KILL(beam.thrower)
+ && mons_is_sleeping(mon) && YOU_KILL(beam.thrower)
&& !player_under_penance() && you.piety >= piety_breakpoint(2)
&& mons_near(mon))
{