mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +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->SetPosition(movementInfo.GetPos()->x, movementInfo.GetPos()->y, movementInfo.GetPos()->z, movementInfo.GetPos()->o);
|
||||||
plMover->m_movementInfo = movementInfo;
|
plMover->m_movementInfo = movementInfo;
|
||||||
|
|
||||||
|
/* Movement should cancel looting */
|
||||||
|
if(ObjectGuid lootGUID = plMover->GetLootGuid())
|
||||||
|
plMover->SendLootRelease(lootGUID);
|
||||||
|
|
||||||
if (movementInfo.GetPos()->z < -500.0f)
|
if (movementInfo.GetPos()->z < -500.0f)
|
||||||
{
|
{
|
||||||
if (plMover->GetBattleGround()
|
if (plMover->GetBattleGround()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12758"
|
#define REVISION_NR "12759"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue