Core/DataStores: Updated db2 structures to 9.0.2

Port From (https://github.com/TrinityCore/TrinityCore/commit/b82a3a557a7bf13d48342ea189325550059b622d)
This commit is contained in:
hondacrx
2020-12-12 23:20:41 -05:00
parent 18d2b7bb80
commit f0037ab99f
86 changed files with 12653 additions and 2811 deletions
@@ -790,7 +790,7 @@ namespace Game.Networking.Packets
public class ItemModList
{
public Array<ItemMod> Values = new Array<ItemMod>(ItemModifier.Max);
public Array<ItemMod> Values = new Array<ItemMod>((int)ItemModifier.Max);
public void Read(WorldPacket data)
{
@@ -859,8 +859,8 @@ namespace Game.Networking.Packets
ItemBonus.Value.Context = item.GetContext();
}
foreach (var mod in item.m_itemData.Modifiers.Values)
Modifications.Values.Add(mod.Value, (ItemModifier)mod.Type);
foreach (var mod in item.m_itemData.Modifiers.GetValue().Values)
Modifications.Values.Add(new ItemMod(mod.Value, (ItemModifier)mod.Type));
}
public ItemInstance(Loots.LootItem lootItem)