fix(Core/Movement): prevent false MovementInform on gossip pause (#25428)

This commit is contained in:
sogladev
2026-04-12 22:55:54 +02:00
committed by GitHub
parent c839ddf829
commit 49b3926f6c
8 changed files with 160 additions and 37 deletions
+3 -3
View File
@@ -110,6 +110,8 @@ void WorldSession::SendTrainerList(Creature* npc)
return;
}
npc->PauseMovementForInteraction();
trainer->SendSpells(npc, _player, GetSessionDbLocaleIndex());
}
@@ -165,9 +167,7 @@ void WorldSession::HandleGossipHelloOpcode(WorldPacket& recvData)
//if (GetPlayer()->HasUnitState(UNIT_STATE_DIED))
// GetPlayer()->RemoveAurasByType(SPELL_AURA_FEIGN_DEATH);
// Stop the npc if moving
if (uint32 pause = unit->GetMovementTemplate().GetInteractionPauseTimer())
unit->PauseMovement(pause);
unit->PauseMovementForInteraction();
// Update home position for patrolling NPCs only (prevents drift for stationary NPCs)
if (unit->GetDefaultMovementType() == WAYPOINT_MOTION_TYPE ||