Returns whether an action is the standard melee Attack action. Used in the default UI to flash the action button while auto-attack is active. Does not apply to other repeating actions such as Auto Shot (for hunters) and Shoot (for wand users); for those, see IsAutoRepeatAction.

See also Action functions.


isAttack = IsAttackAction(slot)


  • slot - An action bar slot (number, actionID)


  • isAttack - 1 if the action enables/disables melee auto-attack; otherwise nil (1nil)