mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user