Fix issue with pets causing players to be aggroed and ignoring distance checks

This commit is contained in:
Akkadius 2019-06-12 01:27:55 -05:00
parent 882e3742d9
commit d817f08373

View File

@ -251,9 +251,10 @@ bool Mob::CheckWillAggro(Mob *mob) {
return false;
}
Mob *ownr = mob->GetOwner();
if(ownr && ownr->IsClient() && !ownr->CastToClient()->ClientFinishedLoading())
Mob *pet_owner = mob->GetOwner();
if (pet_owner && pet_owner->IsClient()) {
return false;
}
float iAggroRange = GetAggroRange();