Core/Pets: Do not force pets to follow their charmer when possessed by player (#27293)

* Fixes Eyes of the Beast

Closes #27226

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Grindelwald
2021-11-20 02:53:47 +08:00
committed by GitHub
parent 9cb86a42a9
commit e63838f624

View File

@@ -639,7 +639,7 @@ void PetAI::UpdateAllies()
void PetAI::OnCharmed(bool isNew)
{
if (me->IsCharmed())
if (!me->isPossessedByPlayer() && me->IsCharmed())
me->GetMotionMaster()->MoveFollow(me->GetCharmer(), PET_FOLLOW_DIST, me->GetFollowAngle());
CreatureAI::OnCharmed(isNew);