Returns whether an equipped item is broken


See also Inventory functions.

Signature:

isBroken = GetInventoryItemBroken("unit", slot)

Arguments:

  • unit - A unit to query; only valid for 'player' or the unit currently being inspected (string, unitID)
  • slot - An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)

Returns:

  • isBroken - 1 if the item is broken (durability zero); otherwise nil (1nil)