17 lines
653 B
Lua
17 lines
653 B
Lua
---@diagnostic disable: missing-return, lowercase-global
|
|
|
|
---@param unit string
|
|
---@param name string
|
|
---@return 6 powerType
|
|
---@return 0
|
|
---@return 1
|
|
---@return 2
|
|
---@return 3
|
|
---@return 6
|
|
---@return string powerToken
|
|
---@return number altR
|
|
---@return number altG
|
|
---@return number altB
|
|
---Returns the power type (energy, mana, rage) of the given unit. Does not return color values for common power types (mana, rage, energy, focus, and runic power); the canonical colors for these can be found in the PowerBarColor table. Color values may be included for special power types such as those used by vehicles.
|
|
function UnitPowerType(unit, name) end
|