mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Completes the retail signature UnitPower(unit [, powerType [, unmodified]]) (and UnitPowerMax). A truthy third arg skips the per-type display divisor and returns the raw internal value, via the same ToBoolean(L, 3) path already used by UnitPowerMissing. Verified in-game on a warrior (rage, divisor 10): UnitPower(1)=96 UnitPower(1,true)=961 (floor(961/10)=96) UnitPowerMax(1)=100 UnitPowerMax(1,true)=1000 UnitPowerMissing(1)=4 UnitPowerMissing(1,true)=39 The missing=4 (not 3) confirms the display-value subtraction: 100-96, not (1000-961)/10 floored to 3. Docs updated (signature, TOC anchor, unmodified note).