WoW:API IsAttackAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API IsAttackAction to API IsAttackAction without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''IsAttackAction''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Determine whether action slot is an attack action.
Determine whether action slot is an attack action.
Line 6: Line 6:
== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
:(actionSlot)
:;actionSlot : Numeric - The action slot to test.
:;actionSlot : Numeric - The action slot to test.
=== Returns ===
=== Returns ===
:isAttack
:;isAttack : Flag - nil if the specified slot is not an attack action, or is empty. 1 if the slot is an attack action and should flash red during combat.
:;isAttack : Flag - nil if the specified slot is not an attack action, or is empty. 1 if the slot is an attack action and should flash red during combat.
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|IsAttackAction]]
[[Category:API Action Functions|IsAttackAction]]

Latest revision as of 04:46, 15 August 2023

WoW API < IsAttackAction

Determine whether action slot is an attack action.

isAttack = IsAttackAction(actionSlot)

Parameters[edit]

Arguments[edit]

actionSlot
Numeric - The action slot to test.

Returns[edit]

isAttack
Flag - nil if the specified slot is not an attack action, or is empty. 1 if the slot is an attack action and should flash red during combat.