66 return packet.Cast.SpellID == effect->SpellID;
69 if (effect == item->
Effects.end())
75 TC_LOG_ERROR(
"network",
"HandleUseToy: unknown spell id: {} used by Toy Item entry {}", packet.
Cast.
SpellID, itemId);
@ EQUIP_ERR_ITEM_NOT_FOUND
#define TC_LOG_ERROR(filterType__,...)
@ TRIGGERED_NONE
Not triggered.
@ CAST_FLAG_EX_USE_TOY_SPELL
void SendEquipError(InventoryResult msg, Item const *item1=nullptr, Item const *item2=nullptr, uint32 itemId=0) const
void DestroyItem(uint8 bag, uint8 slot, bool update)
Item * GetItemByGuid(ObjectGuid guid) const
InventoryResult CanUseItem(Item *pItem, bool not_loading=true) const
struct Spell::@333::@335 Raw
SpellCastResult prepare(SpellCastTargets const &targets, AuraEffect const *triggeredByAura=nullptr)
bool isPossessing() const
WorldPacket const * Write() override
WorldPackets::Spells::SpellCastRequest Cast
void HandleToyClearFanfare(WorldPackets::Toy::ToyClearFanfare &toyClearFanfare)
void HandleAddToy(WorldPackets::Toy::AddToy &packet)
std::unique_ptr< CollectionMgr > _collectionMgr
void HandleUseToy(WorldPackets::Toy::UseToy &packet)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
std::vector< ItemEffectEntry const * > Effects