From 7a83365fe2d2f60e3834d76d07fd0bb570916310 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 11:10:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89=E6=88=98=E6=96=97=E8=83=9C?= =?UTF-8?q?=E5=88=A9=E6=89=8D=E7=AE=97=E5=AE=8C=E6=88=90=E4=BB=BB=E5=8A=A1?= 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, 3 insertions(+), 1 deletion(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index adf9994f..b113436a 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -2560,7 +2560,9 @@ function BattleController:battleEnd() self.battleUI:enableUITouch() end self:controllBattleEnd() - ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_BATTLE_VICTORY) + if self.victory then + ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_BATTLE_VICTORY) + end end, 1) end