Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitIsDeadOrGhost

Last wiki revision 2023-08-13

Returns true if the unit is dead or in ghost form. isDeadOrGhost = UnitIsDeadOrGhost(unit)

  • unit: : UnitId
  • isDeadOrGhost: - true if the unit is dead or in ghost form
  • Effectively combines and, returning true if either of those functions would return true.
  • Does not work for despawned pet units. (A pet is "despawned" once its corpse is no longer targetable in the game world, or its action bar is no longer visible on its owner's screen.)
  • Returns false for priests who are currently in Spirit of Redemption form, having died once and are about to die again.

Source

https://warcraft.wiki.gg/wiki/API_UnitIsDeadOrGhost · 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.