Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
class Game_Party
alias_method :seph_deadknockout_gmprty_actors, :actors
def actors
actors = seph_deadknockout_gmprty_actors.dup
actors.each {|a| actors.delete(a) if a.dead?}
return actors
end
end
But I recommend using this instead:
Code:
class Game_Party
alias_method :seph_deadknockout_gmprty_actors, :actors
def actors
actors = seph_deadknockout_gmprty_actors.dup
if $game_temp.in_battle
actors.each {|a| actors.delete(a) if a.dead?}
end
return actors
end
end