From 994e2001a0b9d1f97e3570aaea7187f151fe804d Mon Sep 17 00:00:00 2001 From: Shea Date: Fri, 22 Dec 2017 17:09:47 -0600 Subject: [PATCH] Fix for Xtargets not being populated when pet initiates aggro. --- zone/attack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index 47b0aad07..8679da02b 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -2716,9 +2716,9 @@ void Mob::AddToHateList(Mob* other, uint32 hate /*= 0*/, int32 damage /*= 0*/, b // owner must get on list, but he's not actually gained any hate yet if (!owner->GetSpecialAbility(IMMUNE_AGGRO)) { - hate_list.AddEntToHateList(owner, 0, 0, false, !iBuffTic); if (owner->IsClient() && !CheckAggro(owner)) owner->CastToClient()->AddAutoXTarget(this); + hate_list.AddEntToHateList(owner, 0, 0, false, !iBuffTic); } } }