Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Indicates a mob is no longer eligible for tap.
unitIsTapDenied = UnitIsTapDenied(unit)
Arguments[]
- unit
- string : UnitId
Returns[]
- unitIsTapDenied
- boolean
Example[]
The following code in FrameXML {} grays out the target frame when the target is tap denied:
function TargetFrame_CheckFaction (self)
if ( not UnitPlayerControlled(self.unit) and UnitIsTapDenied(self.unit) ) then
self.nameBackground:SetVertexColor(0.5, 0.5, 0.5);
if ( self.portrait ) then
self.portrait:SetVertexColor(0.5, 0.5, 0.5);
end
else
self.nameBackground:SetVertexColor(UnitSelectionColor(self.unit));
if ( self.portrait ) then
self.portrait:SetVertexColor(1.0, 1.0, 1.0);
end
end
-- the function continues with activities not relevant to this example
end
Patch changes[]
Patch 7.0.3 (2016-07-19): Added, replacing UnitIsTapped().