From 3fb49b61da88569feb94f0bd0fd631fcc980344f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 1 Aug 2026 12:12:36 +0200 Subject: [PATCH] los:: cultists and hexers no longer ranged-attack if not in sight --- monstermove.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monstermove.cpp b/monstermove.cpp index f32cb02b..29b2ce4a 100644 --- a/monstermove.cpp +++ b/monstermove.cpp @@ -1908,7 +1908,7 @@ EX void specialMoves() { c->stuntime = 1; } - else if(m == moPyroCultist && !peace::on) { + else if(m == moPyroCultist && !peace::on && in_line_of_sight(c)) { bool shot = false; bool dont_approach = false; // smaller range on the sphere @@ -1930,7 +1930,7 @@ EX void specialMoves() { if(shot || dont_approach) c->stuntime = 1; } - else if(m == moHexer && c->item && (classflag(c->item) & IF_CURSE) && !peace::on) { + else if(m == moHexer && c->item && (classflag(c->item) & IF_CURSE) && !peace::on && in_line_of_sight(c)) { // bool dont_approach = false; // smaller range on the sphere int firerange = (sphere || getDistLimit() < 5) ? 2 : 4;