Lore archive · Warcraft Wiki, 2023 dump
API UnitPower
Last wiki revision 2023-08-19
Returns the current power resource of the unit. power = UnitPower(unitToken [, powerType, unmodified])
- unitToken: : UnitId
- powerType: - Type of resource (mana/rage/energy/etc) to query
- unmodified: - Return the higher precision internal value (for graphical use only)
- power: - the unit's current power level
- If no type is specified, UnitPower returns the current primary type, e.g., energy for a druid in cat form.
- You can determine the current primary power type via
Prints the current amount of mana for the player. /dump UnitPower("player", Enum.PowerType.Mana)
Source
https://warcraft.wiki.gg/wiki/API_UnitPower · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.