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)