Returns the current durability level of an equipped item. If an item does not have durability (for example, heirlooms, tabards and some other items) then this function will simply return nil.


See also Inventory functions.

Signature:

durability, max = GetInventoryItemDurability(slot)

Arguments:

Returns:

  • durability - The item's current durability, the first number listed in the item's tooltip where it displays the durability information: for example 4 in 4/29. (number)
  • max - The item's maximum durability, the first number listed in the item's tooltip where it displays the durability information: for example 29 in 4/29 (number)

Examples:

-- Query HeadSlot durability
local slot = GetInventorySlotInfo("HeadSlot")
local durability,max = GetInventoryItemDurability(slot)
print("Head armor is currently at", durability, "of", max, "durability")

-- Might print: "Head armor is current at 78 of 80 durability"