los:: cultists and hexers no longer ranged-attack if not in sight

This commit is contained in:
Zeno Rogue
2026-08-01 12:12:36 +02:00
parent 826b0ac462
commit 3fb49b61da
+2 -2
View File
@@ -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;