Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API IsUsableAction
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Determine if an action can be used (you have sufficient mana, reagents and the action is not on cooldown). isUsable, notEnoughMana = IsUsableAction(slot) == Parameters == === Arguments === :;slot : Integer - The action slot to retrieve data for. === Returns === :;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. ==Notes== Slots are usually distributed as follows: {| class="darktable" !Slots!!Description |- |1 - 12||Action Bar 1 |- class="alt" |13 - 24||Action Bar 2 |- |25 - 36||Action Bar 3 (Right) |- class="alt" |37 - 48||Action Bar 4 (Right-2) |- |49 - 60||Action Bar 5 (Bottom Left) |- class="alt" |61 - 72||Action Bar 6 (Bottom Right) |- |73 - 84||Battle Stance (Warrior) or Stealth (Rogue) |- class="alt" |85 - 96||Defensive Stance (Warrior) |- |97 - 108||Berserker Stance (Warrior) |}
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)