UnitIsUnit
functionimplementedavailable in: camelot
Returns true if the specified units are the same unit.
function UnitIsUnit( unit1: string, unit2: string): booleanParameters
| name | type | description |
|---|---|---|
unit1 | string | UnitId - The first unit to query (e.g. "party1", "pet", "player") |
unit2 | string | UnitId - The second unit to compare it to (e.g. "target") |
Returns
result · boolean
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
- Requires comparable unit tokens.
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.