Pain Suppression or Resurrection

/cast [combat] Pain Suppression; [nocombat] Resurrection

.If the player is in combat then the macro casts Pain Suppression. If not, the macro casts Resurrection.