From 6f7fd539eba672238406d72c07083f0f30b5c24e Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Thu, 28 Aug 2025 17:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/battle/battle_base_ui.lua | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lua/app/ui/battle/battle_base_ui.lua b/lua/app/ui/battle/battle_base_ui.lua index 43b3f0c5..da8c6a5b 100644 --- a/lua/app/ui/battle/battle_base_ui.lua +++ b/lua/app/ui/battle/battle_base_ui.lua @@ -949,9 +949,9 @@ function BattleBaseUI:showCombo(count, side) self.comboNodeVisible = true self.comboNode:setVisible(true) if count <= 5 then - if self.comboFxVisible1 then - self.comboFxVisible1 = false - self.comboFx1:setActive(false) + if not self.comboFxVisible1 then + self.comboFxVisible1 = true + self.comboFx1:setActive(true) end if self.comboFxVisible2 then self.comboFxVisible2 = false @@ -975,13 +975,13 @@ function BattleBaseUI:showCombo(count, side) self.comboFxVisible1 = false self.comboFx1:setActive(false) end - if self.comboFxVisible2 then - self.comboFxVisible2 = false - self.comboFx2:setActive(false) + if not self.comboFxVisible2 then + self.comboFxVisible2 = true + self.comboFx2:setActive(true) end - if not self.comboFxVisible3 then - self.comboFxVisible3 = true - self.comboFx3:setActive(true) + if self.comboFxVisible3 then + self.comboFxVisible3 = false + self.comboFx3:setActive(false) end self.comboBg1:setVisible(true) self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1) @@ -997,17 +997,17 @@ function BattleBaseUI:showCombo(count, side) self.comboAnimator:Play(GConst.BattleConst.ANIMATOR_HASH_NAME_BATTLE_COMBO_2_l, -1, 0) end else - if not self.comboFxVisible1 then - self.comboFxVisible1 = true - self.comboFx1:setActive(true) + if self.comboFxVisible1 then + self.comboFxVisible1 = false + self.comboFx1:setActive(false) end - if not self.comboFxVisible2 then - self.comboFxVisible2 = true - self.comboFx2:setActive(true) + if self.comboFxVisible2 then + self.comboFxVisible2 = false + self.comboFx2:setActive(false) end - if self.comboFxVisible3 then - self.comboFxVisible3 = false - self.comboFx3:setActive(false) + if not self.comboFxVisible3 then + self.comboFxVisible3 = true + self.comboFx3:setActive(true) end self.comboBg1:setVisible(true) self.comboTx1:setText(GConst.EMPTY_STRING, self.comboTxComp1)