mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[12759] Looting will be cancelled upon movement.
This means, initiating movement with an open loot window will not cancel
looting as intended.
commit is based on 6cac49b1de
This commit is contained in:
parent
2601395e94
commit
298e18ebb6
2 changed files with 5 additions and 1 deletions
|
|
@ -612,6 +612,10 @@ void WorldSession::HandleMoverRelocation(MovementInfo& movementInfo)
|
|||
plMover->SetPosition(movementInfo.GetPos()->x, movementInfo.GetPos()->y, movementInfo.GetPos()->z, movementInfo.GetPos()->o);
|
||||
plMover->m_movementInfo = movementInfo;
|
||||
|
||||
/* Movement should cancel looting */
|
||||
if(ObjectGuid lootGUID = plMover->GetLootGuid())
|
||||
plMover->SendLootRelease(lootGUID);
|
||||
|
||||
if (movementInfo.GetPos()->z < -500.0f)
|
||||
{
|
||||
if (plMover->GetBattleGround()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue