From 942f06485ffbf0ada65aa3bb9849dcc5cce43f60 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 16 Jun 2023 10:58:10 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/controller/battle_controller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 9aea2a8b..b6a79231 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -648,8 +648,8 @@ function BattleController:enterNextWave() end if self.waveIndex >= self.maxWaveIndex then - self.victory = true - self:postWaveOver(false) + self.victory = self.curWaveMonsterDead + self:postWaveOver(not self.curWaveMonsterDead) self:battleEnd() return end