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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 16219a9adc..34e0e4073d 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -2373,10 +2373,10 @@ static void _beam_petrifies_monster(bolt &pbolt, monsters *monster)
bool curare_hits_monster(const bolt &beam, monsters *monster,
kill_category who, int levels)
{
- const bool res_poison = mons_res_poison(monster) > 0;
-
poison_monster(monster, who, levels, false);
+ const bool res_poison = mons_res_poison(monster) > 0;
+
if (!mons_res_asphyx(monster))
{
int hurted = roll_dice(2, 6);
@@ -2409,7 +2409,7 @@ bool poison_monster(monsters *monster, kill_category who, int levels,
if (!monster->alive())
return (false);
- if (levels <= 0 || (!force && mons_res_poison(monster) > 0))
+ if ((!force && mons_res_poison(monster) > 0) || levels <= 0)
return (false);
const mon_enchant old_pois = monster->get_ench(ENCH_POISON);