GetPossessInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 2.3.0 / 1.13.2

Returns info for an action on the possession bar.

texture, spellID, enabled = GetPossessInfo(index)

Arguments

index
number - The slot of the possess bar to check, ascending from 1.

Returns

texture
string - The icon texture used for this slot, nil if the slot is empty
spellID
number - The name of the action in this slot, nil if the slot is empty.
enabled
boolean - true if there is an action in this slot, nil otherwise.

Details

  • The possession bar is shown by the default UI (like a stance bar) while the player is controlling another target, such as while channeling [Mind Control].
  • Typically, the first slot contains the spell used to control the other unit (which does nothing), while the second slot has a "Cancel" action that ends the effect.

Patch changes

Battle for Azeroth Patch 8.0.1 (2018-07-17): The second parameter was changed from spell name to spell ID. [1]

See also

  • IsPossessBarVisible