summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index 01127e3b18..23c873e10f 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -840,15 +840,7 @@ bool mon_special_ability(monsters *monster, bolt & beem)
if (mons_atts_aligned(monster->attitude, targ->attitude))
continue;
- // Faking LOS by checking the neighbouring square.
- coord_def diff = targ->pos() - monster->pos();
- coord_def sg(sgn(diff.x), sgn(diff.y));
- coord_def t = monster->pos() + sg;
-
- if (!in_bounds(t))
- continue;
-
- if (!feat_is_solid(grd(t)))
+ if (monster->can_see(*targ) && !feat_is_solid(grd(targ->pos())))
{
monster->hit_points = -1;
used = true;