[pre lang="ruby"]def BattleManager.judge_win_loss
if @phase
return process_abort if $game_party.members.empty?
return process_defeat if $game_party.all_dead?
return process_victory if !$game_switches[1] && $game_troop.all_dead? # 改了这句,没测试
return process_abort if aborting?
end
return false
end[/pre]