Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API IsEquippedAction

From WoW Classic Wiki


Tests if the action is an active equip action. Template:Code/Begin isTrue = IsEquippedAction(slotID) Template:Code/End


Parameters

Arguments

slotID - ActionSlot
The tested action


Returns

isTrue - Flag
  • 1 if the specified action is an action that equips a weapon and if the action has been used to equip the current weapon
  • nil otherwise


Details

An equip action is created if you drag a weapon from the Inventory to an action bar slot. If you click this action to equip the weapon, the action icon will obtain a green outline. It is in this case that IsEquippedAction() returns 1. All other cases (e.g. empty slot, non-equip action, equip action is of the current weapon but hasn't been used yet) will return nil.