Fix for pets breaking mez after initial aggro

This commit is contained in:
Uleat 2019-12-10 22:06:51 -05:00
parent 1196abfda8
commit 4e6018e3e8

View File

@ -1138,6 +1138,17 @@ void Mob::AI_Process() {
return;
}
if (target->IsMezzed() && IsPet()) {
auto pet_owner = GetOwner();
if (pet_owner && pet_owner->IsClient()) {
pet_owner->MessageString(Chat::NPCQuestSay, CANNOT_WAKE, GetCleanName(), target->GetCleanName());
}
RemoveFromHateList(target);
return;
}
#ifdef BOTS
if (IsPet() && GetOwner() && GetOwner()->IsBot() && target == GetOwner())
{