API:UnitIsDeadOrGhost

__NOTOC__
UnitIsDeadOrGhost
Verifies if a given unit is dead or waiting for resurrection.
UnitIsDeadOrGhost(UnitId)
== Parameters ==
=== Arguments ===
:;UnitId
::string - A valid UnitId.
=== Returns ===
:;boolean
::Boolean - <TT>true</TT> or <TT>false</TT> or <TT>nil</TT> if the argument is not a valid UnitId.
== Example ==
if ( UnitIsDeadOrGhost("target") == true ) then
 SendChatMessage("haha!", "SAY");
end
== Notes ==
* If you write an event handler for the UNIT_HEALTH event, this function sometimes does not correctly return <TT>true</TT>, even when the health is down to 0 and the unit is dead. To work around this, UnitHealth should be used.
== Related Functions ==
* UnitHealth