m
Formatting
mNo edit summary |
m (Formatting) |
||
| Line 1: | Line 1: | ||
''' | <center>'''IsUsableAction'''</center> | ||
Determine if an action can be used. | |||
isUsable, notEnoughMana = IsUsableAction(slot) | |||
== Parameters == | |||
=== Arguments === | |||
:(slot) | |||
:;slot : Integer - The action slot to retrieve data for. | |||
=== Returns === | |||
:isUsable, notEnoughMana | |||
:;isUsable : Flag - Returns 1 if the action is valid for use at present (Does NOT include cooldown or range tests), nil otherwise. | |||
:;notEnoughMana : Flag - Returns 1 if the reason for the action not being usable is because there is not enough mana/rage/energy, nil otherwise. | |||
== Example == | |||
<!-- begin code --> | |||
local isUsable, notEnoughMana = IsUsableAction(1); | |||
<!-- end code --> | |||
---- | ---- | ||
__NOTOC__ | |||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Action Functions|IsUsableAction]] | |||
[[Category:API Functions|IsUsableAction]] | [[Category:API Functions|IsUsableAction]] | ||