diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-16 23:11:59 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-16 23:11:59 +0000 |
commit | f0a8d0474fd94fc6d623023db3ef403a17cd23cc (patch) | |
tree | 1727e1f8a4a27af9180221871fb564ac28a52b8b /crawl-ref/source/beam.cc | |
parent | ce1424a5886f907755c36e5e649f20bb412cd810 (diff) | |
download | crawl-ref-f0a8d0474fd94fc6d623023db3ef403a17cd23cc.tar.gz crawl-ref-f0a8d0474fd94fc6d623023db3ef403a17cd23cc.zip |
Use more wrappers, and add more cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5893 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
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)) { |