mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Movement): prevent false MovementInform on gossip pause (#25428)
This commit is contained in:
@@ -3091,6 +3091,21 @@ CreatureMovementData const& Creature::GetMovementTemplate() const
|
||||
return GetCreatureTemplate()->Movement;
|
||||
}
|
||||
|
||||
void Creature::PauseMovementForInteraction()
|
||||
{
|
||||
if (uint32 pause = GetMovementTemplate().GetInteractionPauseTimer())
|
||||
{
|
||||
uint8 pauseSlot = MOTION_SLOT_IDLE;
|
||||
|
||||
if (GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_ACTIVE) == POINT_MOTION_TYPE)
|
||||
pauseSlot = MOTION_SLOT_ACTIVE;
|
||||
else if (GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_CONTROLLED) == POINT_MOTION_TYPE)
|
||||
pauseSlot = MOTION_SLOT_CONTROLLED;
|
||||
|
||||
PauseMovement(pause, pauseSlot);
|
||||
}
|
||||
}
|
||||
|
||||
void Creature::AllLootRemovedFromCorpse()
|
||||
{
|
||||
if (loot.loot_type != LOOT_SKINNING && !IsPet() && GetCreatureTemplate()->SkinLootId && hasLootRecipient())
|
||||
|
||||
Reference in New Issue
Block a user