Try this:
class Scene_Battle
#--------------------------------------------------------------------------
# * End Battle
# result : Results (0: win, 1: escape, 2:lose)
#--------------------------------------------------------------------------
alias ghero_hp_recover_to1_on_bttl_end_8fbf battle_end
def battle_end(result)
ghero_hp_recover_to1_on_bttl_end_8fbf (result)
$game_party.members.each { |actor| actor.hp = 1 if actor.dead? }
end
end
Unless I messed up somewhere or misthought this, that ought to work.