Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API UnitIsDeadOrGhost

From Wowpedia
Jump to: navigation, search

Returns a value indicating whether the specified unit is dead or in ghost form.

isDeadOrGhost = UnitIsDeadOrGhost(unit)

Arguments

unit 
String - the UnitId to query

Returns

true if the unit is dead or in ghost form, false otherwise.

Details

  • Effectively combines UnitIsDead and UnitIsGhost, 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.

See also