Lore archive · Warcraft Wiki, 2023 dump
API UnitIsUnit
Last wiki revision 2023-08-13
Returns true if the specified units are the same unit. isSame = UnitIsUnit(unit1, unit2)
- unit1: : UnitId - The first unit to query (e.g. "party1", "pet", "player")
- unit2: : UnitId - The second unit to compare it to (e.g. "target")
- isSame: - 1 if the two units are the same entity, nil otherwise.
if ( UnitIsUnit("targettarget", "player") ) then message("Look at me, I have aggro from " .. UnitName("target") .. "!"); end;
Displays a message if your target is targetting you.
Source
https://warcraft.wiki.gg/wiki/API_UnitIsUnit · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.