Core/Movement: Creatures' idle movement generator can no longer override player mover control.

Port From (https://github.com/TrinityCore/TrinityCore/commit/88c1739e3e1ecf58407b0846f3c8dfeb589f3113)
This commit is contained in:
hondacrx
2021-06-23 17:50:46 -04:00
parent 11cbb26bc1
commit ca1afb5c2e
4 changed files with 13 additions and 3 deletions
+5
View File
@@ -7245,8 +7245,13 @@ namespace Game.Entities
public void SetMover(Unit target)
{
m_unitMovedByMe.m_playerMovingMe = null;
if (m_unitMovedByMe.IsCreature())
m_unitMovedByMe.GetMotionMaster().Initialize();
m_unitMovedByMe = target;
m_unitMovedByMe.m_playerMovingMe = this;
if (m_unitMovedByMe.IsCreature())
m_unitMovedByMe.GetMotionMaster().Initialize();
MoveSetActiveMover packet = new();
packet.MoverGUID = target.GetGUID();