mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 02:52:26 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
f43bf5542f
commit
f79bad8b4b
@ -444,7 +444,7 @@ void EntityList::AIYellForHelp(Mob* sender, Mob* attacker) {
|
|||||||
// && !mob->IsCorpse()
|
// && !mob->IsCorpse()
|
||||||
// && mob->IsAIControlled()
|
// && mob->IsAIControlled()
|
||||||
&& mob->GetPrimaryFaction() != 0
|
&& mob->GetPrimaryFaction() != 0
|
||||||
&& mob->DistNoRoot(*sender) <= r
|
&& ComparativeDistance(mob->GetPosition(), sender->GetPosition()) <= r
|
||||||
&& !mob->IsEngaged()
|
&& !mob->IsEngaged()
|
||||||
&& ((!mob->IsPet()) || (mob->IsPet() && mob->GetOwner() && !mob->GetOwner()->IsClient()))
|
&& ((!mob->IsPet()) || (mob->IsPet() && mob->GetOwner() && !mob->GetOwner()->IsClient()))
|
||||||
// If we're a pet we don't react to any calls for help if our owner is a client
|
// If we're a pet we don't react to any calls for help if our owner is a client
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user