Returns information about a basic character statistic for the player or pet


See also Stat information functions.

Signature:

stat, effectiveStat, posBuff, negBuff = UnitStat("unit", statIndex)

Arguments:

  • unit - A unit to query; only valid for player or pet (string, unitID)
  • statIndex - Index of a basic statistic (number)
    • 1 - Strength
    • 2 - Agility
    • 3 - Stamina
    • 4 - Intellect
    • 5 - Spirit

Returns:

  • stat - Current value of the statistic (number)
  • effectiveStat - Effective value of the statistic (number)
  • posBuff - Positive modifiers to the statistic (number)
  • negBuff - Negative modifiers to the statistic (number)