optimize revive action condition