mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
feat(Core/Player): implement GetFreeInventorySpace() (#4297)
This commit is contained in:
@@ -1242,6 +1242,7 @@ public:
|
||||
[[nodiscard]] Item* GetItemByPos(uint16 pos) const;
|
||||
[[nodiscard]] Item* GetItemByPos(uint8 bag, uint8 slot) const;
|
||||
[[nodiscard]] Bag* GetBagByPos(uint8 slot) const;
|
||||
[[nodiscard]] uint32 GetFreeInventorySpace() const;
|
||||
[[nodiscard]] inline Item* GetUseableItemByPos(uint8 bag, uint8 slot) const //Does additional check for disarmed weapons
|
||||
{
|
||||
if (!CanUseAttackType(GetAttackBySlot(slot)))
|
||||
|
||||
Reference in New Issue
Block a user