class Game_Party < Game_Unit
alias back_attack_battle_members battle_members
def battle_members
if BattleManager.surprise? && all_members.size > max_battle_members
start_member = all_members.size-max_battle_members
all_members[start_member, max_battle_members].select{|actor|
actor.exist?
}
else
back_attack_battle_members
end
end
end
module BattleManager
def self.surprise?
return @surprise
end
end
class Game_Party < Game_Unit
alias back_attack_battle_members battle_members
def battle_members
if BattleManager.surprise? && all_members.size > max_battle_members
start_member = all_members.size-max_battle_members
all_members[start_member, max_battle_members].select{|actor|
actor.exist?
}
else
back_attack_battle_members
end
end
end
module BattleManager
def self.surprise?
return @surprise
end
end