Core/Loot: Corrected loot release logic on leaving world and swapping bags
Port From (https://github.com/TrinityCore/TrinityCore/commit/30ad7e3337f8da32cb567489f4203c7eb35d17a4)
This commit is contained in:
@@ -350,7 +350,8 @@ namespace Game
|
||||
player.SendLootRelease(lguid);
|
||||
player.RemoveAELootedWorldObject(lguid);
|
||||
|
||||
player.RemoveUnitFlag(UnitFlags.Looting);
|
||||
if (player.GetAELootView().Empty())
|
||||
player.RemoveUnitFlag(UnitFlags.Looting);
|
||||
|
||||
if (!player.IsInWorld)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user