Verifies if a given unit is dead or waiting for resurrection.


Parameters Edit

Arguments Edit

string - A valid UnitId.

Returns Edit

Boolean - true or false or nil if the argument is not a valid UnitId.

Example Edit

if ( UnitIsDeadOrGhost("target") == true ) then
    SendChatMessage("haha!", "SAY");

Notes Edit

  • If you write an event handler for the UNIT_HEALTH event, this function sometimes does not correctly return true, even when the health is down to 0 and the unit is dead. To work around this, UnitHealth should be used.

Related Functions Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.