Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

isUsableAction

Checks to see if a given action is usable, and also if you have the required mana/energy/rage to activate it.

isUsable, notEnoughMana = IsUsableAction(id); 

Arguments
id

The "id" is the actionbutton id.

If you keep your action you want to check for usability on, say, action button 1 on action bar 1, the id is 1. If you keep it on action button 12 on bar 6, it's 6*12 = 72.


Returns
isUsable, mana

Example
local isUsable, notEnoughMana = IsUsableAction(1); 
Result

Description



Template:WoW API

Advertisement