summaryrefslogtreecommitdiff
path: root/src/server/game/Entities/Item/Item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Entities/Item/Item.h')
-rw-r--r--src/server/game/Entities/Item/Item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Entities/Item/Item.h b/src/server/game/Entities/Item/Item.h
index 51289594b9..9f467fad79 100644
--- a/src/server/game/Entities/Item/Item.h
+++ b/src/server/game/Entities/Item/Item.h
@@ -272,6 +272,13 @@ public:
[[nodiscard]] uint32 GetCount() const { return GetUInt32Value(ITEM_FIELD_STACK_COUNT); }
void SetCount(uint32 value) { SetUInt32Value(ITEM_FIELD_STACK_COUNT, value); }
[[nodiscard]] uint32 GetMaxStackCount() const { return GetTemplate()->GetMaxStackSize(); }
+ void GetOnEquipSpellIDs(std::vector<uint32>& spellEquipID) const
+ {
+ if (ItemTemplate const* proto = GetTemplate())
+ proto->GetOnEquipSpellIDs(spellEquipID);
+ else
+ spellEquipID.clear();
+ };
// Checks if this item has sockets, whether built-in or added by an upgrade.
[[nodiscard]] bool HasSocket() const;
[[nodiscard]] uint8 GetGemCountWithID(uint32 GemID) const;