Files
wow-weakauras/Meta/api/UnitPowerMax.lua
2024-11-07 23:12:37 +01:00

7 lines
496 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@param unitID string
---@param powerType number
---@return number maxValue
---Returns a unit's maximum mana, rage, energy or other power type. Returns the units current maximum power, if the unit does not exist then zero is returned. When querying with a powerType, as long as the unit exists you will get the maximum untalented power even if the class does not use the power type.
function UnitPowerMax(unitID, powerType) end