diff options
author | ccrs <ccrs@users.noreply.github.com> | 2019-05-19 23:59:52 +0200 |
---|---|---|
committer | ccrs <ccrs@users.noreply.github.com> | 2019-05-19 23:59:52 +0200 |
commit | e4a1556e09ea38ece9a76b0d190d2b2f29bf5bb9 (patch) | |
tree | efb9272eb30d5227a2c0a52c7452437a9acc1e0f | |
parent | c826ec0a3c17f86f8a3e44455c533fb46f239720 (diff) |
Core/PetAI: apply some movement related corrections
Unit::StopMoving() is evil, and so is MotionMaster::Clear()
the first can really mess up existing movement generators
the second can interrupt "controlled" movements... can do it literally mid-air
-rw-r--r-- | src/server/game/AI/CoreAI/PetAI.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 846021fd5c2..4e18160e553 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -449,7 +449,6 @@ void PetAI::MovementInform(uint32 type, uint32 id) { ClearCharmInfoFlags(); me->GetCharmInfo()->SetIsAtStay(true); - me->GetMotionMaster()->Clear(); me->GetMotionMaster()->MoveIdle(); } break; |