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.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index bf48e44b0a..82da7982c1 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4005,11 +4005,8 @@ void bolt::update_hurt_or_helped(monsters *mon)
friend_info.hurt++;
// Harmful beam from this monster rebounded and hit the monster.
- if (!is_tracer
- && static_cast<int>(monster_index(mon)) == beam_source)
- {
+ if (!is_tracer && mon->mindex() == beam_source)
xom_is_stimulated(128);
- }
}
else if (nice_to(mon))
friend_info.helped++;