IsUsableAction

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns true if the character can currently use the specified action (sufficient mana, reagents and not on cooldown).

isUsable, notEnoughMana = IsUsableAction(slot)

Arguments

slot
number - Action slot to query

Returns

isUsable
boolean - true if the action is currently usable (does not check cooldown or range), false otherwise.
notEnoughMana
boolean - true if the action is unusable beacuse the player does not have enough mana, rage, etc.; false otherwise.