Core/Loot: Set loot guid and type in Loot constructor
Port From (https://github.com/TrinityCore/TrinityCore/commit/e9d083a2ee59d297271b04f3b7fb63808f7f0c8c)
This commit is contained in:
@@ -207,7 +207,7 @@ namespace Game
|
||||
if (loot == null)
|
||||
continue;
|
||||
|
||||
loot.NotifyMoneyRemoved();
|
||||
loot.NotifyMoneyRemoved(player.GetMap());
|
||||
if (shareMoney && player.GetGroup() != null) //item, pickpocket and players can be looted only single player
|
||||
{
|
||||
|
||||
@@ -578,7 +578,7 @@ namespace Game
|
||||
item.count = 0;
|
||||
item.is_looted = true;
|
||||
|
||||
loot.NotifyItemRemoved(slotid);
|
||||
loot.NotifyItemRemoved(slotid, GetPlayer().GetMap());
|
||||
--loot.unlootedCount;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user