Originally Posted by
Appelgren
If my target is dead and in combat i will cast Rebirth on him
If my target is dead and out of combat i will cast Revive on him
Not doable. There is no conditional to check if your target is in combat (there is only one to check if you are, which should coincide, but is of course not always the case). See here for more info.
Code:
/cast [noharm,nodead,@target] Remove Corruption; [harm,nodead,@target] Soothe; [dead,combat,@target] Rebirth; [dead,nocombat,@target] Revive