mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-07 21:32:26 +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;
|
AggroRange = AggroRange * AggroRange;
|
||||||
|
|
||||||
if(mob->DistNoRoot(*this) > AggroRange) continue;
|
if(ComparativeDistance(m_Position, mob->GetPosition()) > AggroRange) continue;
|
||||||
|
|
||||||
CurrentCon = this->GetLevelCon(mob->GetLevel());
|
CurrentCon = this->GetLevelCon(mob->GetLevel());
|
||||||
switch(CurrentCon) {
|
switch(CurrentCon) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user