Core/PacketIO: Updated packet structures to 8.1.5

Port TrinityCore Commit: https://github.com/TrinityCore/TrinityCore/commit/31fda79556e55375962a3c9e46f6dbdbf6e90d18
This commit is contained in:
hondacrx
2019-06-22 18:42:45 -04:00
parent d500b65ad9
commit e4d500f4b5
54 changed files with 1179 additions and 1077 deletions
+7 -1
View File
@@ -48,7 +48,7 @@ namespace Game
return;
}
if (_collectionMgr.AddToy(item.GetEntry(), false))
if (_collectionMgr.AddToy(item.GetEntry(), false, false))
_player.DestroyItem(item.GetBagSlot(), item.GetSlot(), true);
}
@@ -93,5 +93,11 @@ namespace Game
spell.m_castFlagsEx |= SpellCastFlagsEx.UseToySpell;
spell.prepare(targets);
}
[WorldPacketHandler(ClientOpcodes.ToyClearFanfare)]
void HandleToyClearFanfare(ToyClearFanfare toyClearFanfare)
{
_collectionMgr.ToyClearFanfare(toyClearFanfare.ItemID);
}
}
}