Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if the specified units are the same unit.
isSame = UnitIsUnit(unit1, unit2)
Arguments[]
Returns[]
- isSame
- boolean - 1 if the two units are the same entity, nil otherwise.
Example[]
if ( UnitIsUnit("targettarget", "player") ) then message("Look at me, I have aggro from " .. UnitName("target") .. "!"); end;
Result[]
Displays a message if your target is targetting you.