Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This is no longer a part of the World of Warcraft API.
|
Returns whether a unit is tappe by the player.
isTapped = UnitIsTappedByPlayer("unit")
Arguments[]
- unit
- String (unitId) - unit to query, e.g. "target"
Returns[]
- isTapped
- Flag - 1 if the unit is tapped by current player, nil otherwise.
Example[]
You can use this function in conjunction with UnitIsTapped and UnitIsTappedByAllThreatList in order to check whether the player will receive any benefit from killing the unit:
if UnitIsTapped("target") and not (UnitIsTappedByPlayer("target") or UnitIsTappedByAllThreatList("target")) then -- You'll get no quest credit/loot if you kill this unit end
Patch changes[]
- Patch 7.0.3 (2016-07-19): Replaced with UnitIsTapDenied().