WoW API: UnitIsGhost

WoW API < UnitIsGhost

Very useful to determine if a mod should be doing something if your ("unit" => "player") is a ghost.

Returns 1 if "unit" is a ghost, nil otherwise.

It is unknown how this works for "pet", but since a pet is never a ghost...