mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 00:20:16 +00:00
feat: add UnitRage, UnitEnergy, UnitFocus, UnitRunicPower aliases
Register power-type-specific aliases (UnitRage, UnitEnergy, UnitFocus, UnitRunicPower) that map to the existing lua_UnitPower function. Some Classic/TBC addons call these directly instead of the generic UnitPower. All return the unit's current power value regardless of type — the underlying function reads from the entity's power field.
This commit is contained in:
parent
2f4065cea0
commit
a70f42d4f6
1 changed files with 4 additions and 0 deletions
|
|
@ -4805,6 +4805,10 @@ void LuaEngine::registerCoreAPI() {
|
|||
{"UnitPowerMax", lua_UnitPowerMax},
|
||||
{"UnitMana", lua_UnitPower},
|
||||
{"UnitManaMax", lua_UnitPowerMax},
|
||||
{"UnitRage", lua_UnitPower},
|
||||
{"UnitEnergy", lua_UnitPower},
|
||||
{"UnitFocus", lua_UnitPower},
|
||||
{"UnitRunicPower", lua_UnitPower},
|
||||
{"UnitLevel", lua_UnitLevel},
|
||||
{"UnitExists", lua_UnitExists},
|
||||
{"UnitIsDead", lua_UnitIsDead},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue