Core/PacketIO: Updated packet structures to 8.1.5
Port TrinityCore Commit: https://github.com/TrinityCore/TrinityCore/commit/31fda79556e55375962a3c9e46f6dbdbf6e90d18
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user