[Zone] Make zone controller less likely to be visible, immune to all forms of combat (#4750)

* [Zone] Make zone controller less likely to be visible, immune to all forms of combat

* Exclude zone controller from scanning
This commit is contained in:
Chris Miles
2025-03-06 16:08:08 -06:00
committed by GitHub
parent d6a21be25e
commit 0c301419c2
4 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -2914,7 +2914,7 @@ void EntityList::ScanCloseMobs(Mob *scanning_mob)
return;
}
if (scanning_mob->GetID() <= 0) {
if (scanning_mob->GetID() <= 0 || scanning_mob->IsZoneController()) {
return;
}
@@ -2933,7 +2933,7 @@ void EntityList::ScanCloseMobs(Mob *scanning_mob)
for (auto &e : mob_list) {
auto mob = e.second;
if (mob && mob->GetID() <= 0) {
if (mob && (mob->GetID() <= 0 || mob->IsZoneController())) {
continue;
}