API IsUsableAction

From Wowpedia
Jump to: navigation, search

Determine if an action can be used (you have sufficient mana, reagents and the action is 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.