Pets shouldn't be scanning for aggro

This commit is contained in:
Akkadius 2019-06-12 01:50:01 -05:00
parent d817f08373
commit 86ed2c1e76

View File

@ -251,6 +251,13 @@ bool Mob::CheckWillAggro(Mob *mob) {
return false; return false;
} }
/**
* Pets shouldn't scan for aggro
*/
if (this->GetOwner()) {
return false;
}
Mob *pet_owner = mob->GetOwner(); Mob *pet_owner = mob->GetOwner();
if (pet_owner && pet_owner->IsClient()) { if (pet_owner && pet_owner->IsClient()) {
return false; return false;