mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-13 10:52:28 +00:00
Fix for pets breaking mez after initial aggro
This commit is contained in:
parent
1196abfda8
commit
4e6018e3e8
@ -1138,6 +1138,17 @@ void Mob::AI_Process() {
|
|||||||
return;
|
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
|
#ifdef BOTS
|
||||||
if (IsPet() && GetOwner() && GetOwner()->IsBot() && target == GetOwner())
|
if (IsPet() && GetOwner() && GetOwner()->IsBot() && target == GetOwner())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user