Core/PacketIO: Fixed SMSG_GUILD_BANK_LIST packet payload for enchantments and sockets

Port From (https://github.com/TrinityCore/TrinityCore/commit/ca37b98fb80f3b431b6e95e88e16f579b429ac1b)
This commit is contained in:
hondacrx
2021-10-14 19:49:06 -04:00
parent 5e1494e4b4
commit 474feb0bb1
+2 -1
View File
@@ -2172,8 +2172,9 @@ namespace Game.Guilds
itemInfo.Slot = slot;
itemInfo.Item.ItemID = tabItem ? tabItem.GetEntry() : 0;
itemInfo.Count = (int)(tabItem ? tabItem.GetCount() : 0);
itemInfo.EnchantmentID = (int)(tabItem ? tabItem.GetEnchantmentId(EnchantmentSlot.Perm) : 0);
itemInfo.Charges = tabItem ? Math.Abs(tabItem.GetSpellCharges()) : 0;
itemInfo.OnUseEnchantmentID = 0/*int32(tabItem.GetItemSuffixFactor())*/;
itemInfo.OnUseEnchantmentID = (int)(tabItem ? tabItem.GetEnchantmentId(EnchantmentSlot.Use) : 0);
itemInfo.Flags = 0;
itemInfo.Locked = false;