mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-12 05:10:32 +00:00
Fix NPC aggro to account for squared - fixing NPC's that aggro beyond the normal scan range
This commit is contained in:
1 parent
11092da32d
commit
6e1c8c665b
1 file changed
+1
-1
@@ -264,7 +264,7 @@ bool Client::Process() {
|
||||
if (distance <= scan_range) {
|
||||
close_mobs.insert(std::pair<Mob *, float>(mob, distance));
|
||||
}
|
||||
else if (mob->GetAggroRange() > scan_range) {
|
||||
else if ((mob->GetAggroRange() * mob->GetAggroRange()) > scan_range) {
|
||||
close_mobs.insert(std::pair<Mob *, float>(mob, distance));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user