[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:
sanctum32 2013-12-30 00:00:53 +02:00 committed by Antz
parent 2601395e94
commit 298e18ebb6
2 changed files with 5 additions and 1 deletions

View file

@ -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()

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12758"
#define REVISION_NR "12759"
#endif // __REVISION_NR_H__