Core/Items: Send CreateObject for items in buyback inventory slots
Port From (https://github.com/TrinityCore/TrinityCore/commit/782ee42989821d551f5d2bce2d231e38ed360dce)
This commit is contained in:
@@ -2935,9 +2935,9 @@ namespace Game.Entities
|
|||||||
|
|
||||||
if (!handled)
|
if (!handled)
|
||||||
{
|
{
|
||||||
PlayerInteractionType[] GossipOptionNpcToInteractionType =
|
PlayerInteractionType[] GossipOptionNpcToInteractionType =
|
||||||
[
|
[
|
||||||
PlayerInteractionType.None, PlayerInteractionType.Vendor, PlayerInteractionType.TaxiNode,
|
PlayerInteractionType.None, PlayerInteractionType.Vendor, PlayerInteractionType.TaxiNode,
|
||||||
PlayerInteractionType.Trainer, PlayerInteractionType.SpiritHealer, PlayerInteractionType.Binder,
|
PlayerInteractionType.Trainer, PlayerInteractionType.SpiritHealer, PlayerInteractionType.Binder,
|
||||||
PlayerInteractionType.Banker, PlayerInteractionType.PetitionVendor, PlayerInteractionType.GuildTabardVendor,
|
PlayerInteractionType.Banker, PlayerInteractionType.PetitionVendor, PlayerInteractionType.GuildTabardVendor,
|
||||||
PlayerInteractionType.BattleMaster, PlayerInteractionType.Auctioneer, PlayerInteractionType.TalentMaster,
|
PlayerInteractionType.BattleMaster, PlayerInteractionType.Auctioneer, PlayerInteractionType.TalentMaster,
|
||||||
@@ -2959,7 +2959,7 @@ namespace Game.Entities
|
|||||||
PlayerInteractionType.AccountBanker, PlayerInteractionType.ProfessionRespec, PlayerInteractionType.PlaceholderType72,
|
PlayerInteractionType.AccountBanker, PlayerInteractionType.ProfessionRespec, PlayerInteractionType.PlaceholderType72,
|
||||||
PlayerInteractionType.PlaceholderType75, PlayerInteractionType.PlaceholderType76, PlayerInteractionType.GuildRename,
|
PlayerInteractionType.PlaceholderType75, PlayerInteractionType.PlaceholderType76, PlayerInteractionType.GuildRename,
|
||||||
PlayerInteractionType.PlaceholderType77, PlayerInteractionType.ItemUpgrade
|
PlayerInteractionType.PlaceholderType77, PlayerInteractionType.ItemUpgrade
|
||||||
];
|
];
|
||||||
|
|
||||||
PlayerInteractionType interactionType = GossipOptionNpcToInteractionType[(int)gossipOptionNpc];
|
PlayerInteractionType interactionType = GossipOptionNpcToInteractionType[(int)gossipOptionNpc];
|
||||||
if (interactionType != PlayerInteractionType.None)
|
if (interactionType != PlayerInteractionType.None)
|
||||||
@@ -8091,21 +8091,8 @@ namespace Game.Entities
|
|||||||
{
|
{
|
||||||
if (target == this)
|
if (target == this)
|
||||||
{
|
{
|
||||||
for (byte i = EquipmentSlot.Start; i < InventorySlots.BankBagEnd; ++i)
|
foreach (Item item in m_items)
|
||||||
{
|
item?.BuildCreateUpdateBlockForPlayer(data, target);
|
||||||
if (m_items[i] == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
m_items[i].BuildCreateUpdateBlockForPlayer(data, target);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (byte i = InventorySlots.ReagentStart; i < InventorySlots.ChildEquipmentEnd; ++i)
|
|
||||||
{
|
|
||||||
if (m_items[i] == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
m_items[i].BuildCreateUpdateBlockForPlayer(data, target);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base.BuildCreateUpdateBlockForPlayer(data, target);
|
base.BuildCreateUpdateBlockForPlayer(data, target);
|
||||||
|
|||||||
Reference in New Issue
Block a user