mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-16 17:02:28 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
9aa46a9af2
commit
1bb4ff2d6a
@ -4201,7 +4201,7 @@ bool Merc::CheckConfidence() {
|
||||
|
||||
AggroRange = AggroRange * AggroRange;
|
||||
|
||||
if(mob->DistNoRoot(*this) > AggroRange) continue;
|
||||
if(ComparativeDistance(m_Position, mob->GetPosition()) > AggroRange) continue;
|
||||
|
||||
CurrentCon = this->GetLevelCon(mob->GetLevel());
|
||||
switch(CurrentCon) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user