Core/Loot: Allocate Loot separately from objects
Port From (https://github.com/TrinityCore/TrinityCore/commit/7957e2d380e08fa831765f610c0e29d2f3e11a04)
This commit is contained in:
@@ -165,9 +165,9 @@ namespace Game.Loots
|
||||
|
||||
public class Loot
|
||||
{
|
||||
public Loot(uint _gold = 0)
|
||||
public Loot()
|
||||
{
|
||||
gold = _gold;
|
||||
gold = 0;
|
||||
unlootedCount = 0;
|
||||
loot_type = LootType.None;
|
||||
maxDuplicates = 1;
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace Game.Loots
|
||||
|
||||
public bool LoadStoredLoot(Item item, Player player)
|
||||
{
|
||||
Loot loot = item.loot;
|
||||
Loot loot = item.GetLootForPlayer(player);
|
||||
if (!_lootItemStorage.ContainsKey(item.GetGUID().GetCounter()))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user