UnitIsTapped

From Warcraft Wiki
Jump to navigation Jump to search
Links
Info
Added in 1.0.0

Returns whether the unit is tapped (by anyone).

isTapped = UnitIsTapped("unit")

Arguments

unit
String - unit to query, e.g. "target".

Returns

isTapped
Flag - 1 if the unit is tapped, nil otherwise.

Details

  • This function returns whether the target is tapped (by anyone at all, including but not limited to the player).
  • To check whether the player has tapped the unit (and could receive loot when it dies), check both UnitIsTappedByPlayer and UnitIsTappedByAllThreatList.

Patch changes