Returns the number of uses remaining for the given action slot. Applies to spells that require reagents, items that stack, or items with charges; used in the default UI to display the count on action buttons.

Returns 0 for any action that does not use a count. To distinguish between actions which do not use a count and actions which do but whose current count is 0, see IsConsumableAction.


See also Action functions.

Signature:

count = GetActionCount(slot)

Arguments:

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

Returns:

  • count - Number of times the action can be used (number)