Framework

Units/FakeUnits

Units

  • A unit(unitId) identifies a unit by their relationship to the player as a target. The name can be player, pet, target, mouseover, pettarget, focus, party1, etc.. You can read more about units in the wowwiki.

arenaN

  • Opposing arena member with index N (1,2,3,4 or 5).

bossN

  • The active bosses of the current encounter if available N (1,2,3...,8).

focus

  • The current player's focus target as selected by the /focus command.

mouseover

  • The unit which the mouse is currently (or was most recently) hovering over.

partyN

  • The Nth party member excluding the player (1,2,3 or 4).

partypetN

  • The pet of the Nth party member (N is 1,2,3, or 4).

pet

  • The current player's pet.

player

  • The current player.

raidN

  • The raid member with raidIndex N (1,2,3,...,40).

raidpetN

  • The pet of the raid member with raidIndex N (1,2,3,...,40)

target

  • The currently targeted unit. May be overridden in macros by unit specified as a value of respective Secure Button attribute.

vehicle

  • The current player's vehicle.

nameplateN

  • The Nth nameplate (1,2,3,...,40). Cannot be targeted by spells or commands such as /target nameplate1 or /cast [target=nameplate1] Healing Wave.

spectated<T><N>

  • The Nth spectated unit (1,2,3,...,15) for either Team "a" or "b", such as "spectatedb2" for the second unit on team B. Only present in commentator mode.

spectatedpet<T><N>

  • The pet of the Nth spectated unit (1,2,3,...,15) for either Team "a" or "b", such as "spectatedpetb2" for the second units' pet on team B. Only present in commentator mode.

Fakeunits

  • A FakeUnit is a construct designed to identify a unit based on its guid/pointer. In Apep versions predating Legion, a FakeUnit returns a guid, while in subsequent expansions, it returns a pointer(key).
Previous
Object Manager