Lore archive · Warcraft Wiki, 2023 dump
API UnitPowerMax
Last wiki revision 2022-08-01
Returns the maximum power resource of the unit. maxPower = UnitPowerMax(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)
- maxPower: - The unit's maximum amount of the queried resource.
- If no type is specified, UnitPowerMax 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 maximum amount of mana for the player. /dump UnitPowerMax("player", Enum.PowerType.Mana)
Source
https://warcraft.wiki.gg/wiki/API_UnitPowerMax · 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.