mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-22 09:02:29 +00:00
los:: cultists and hexers no longer ranged-attack if not in sight
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user