diff options
| author | Grindelwald <137000133@qq.com> | 2021-11-20 02:53:47 +0800 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-03-22 22:41:54 +0100 |
| commit | 8f02596162715b273b1a830425ae783bd00561c9 (patch) | |
| tree | 6207dd214b0d6239668d72ef9f80273a1876a9b6 /src | |
| parent | dcbaa836909b8b7a5c80dd9c16c301e563983765 (diff) | |
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>
(cherry picked from commit e63838f624b28b4fc5fcba2b8c64fced8ef8e11c)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/AI/CoreAI/PetAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 12cea671bfc..9f4dfb4c9f3 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -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); |
