v0.13.8

UnitIsUnit

functionimplementedavailable in: camelot

Returns true if the specified units are the same unit.

signaturewowlua
function UnitIsUnit(    unit1: string,    unit2: string): boolean

Parameters

nametypedescription
unit1stringUnitId - The first unit to query (e.g. "party1", "pet", "player")
unit2stringUnitId - 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 ↗.