WoW API: UnitIsUnit
← WoW API < UnitIsUnit
Returns true if the two specified units are the same, false otherwise.
isSame = UnitIsUnit(unit1, unit2);
ParametersEdit
ArgumentsEdit
ReturnsEdit
- isSame
- Boolean - 1 if the two units are the same entity, nil otherwise.
ExampleEdit
if ( UnitIsUnit("targettarget", "player") ) then message("Look at me, I have aggro from " .. UnitName("target") .. "!"); end;
ResultEdit
Displays a message if your target is targetting you.