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 forplayerorpet(string, unitID)statIndex- Index of a basic statistic (number)1- Strength2- Agility3- Stamina4- Intellect5- 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)