Merge pull request #680 from shea851/xtarget_fix

Fix for Xtargets not being populated when pet initiates aggro.
This commit is contained in:
Michael Cook (mackal) 2017-12-22 18:39:05 -05:00 committed by GitHub
commit 8af4730ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}