From c3bcb35a33833a233478638af676e3e07d5ac0f2 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 30 May 2023 11:29:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=88=98=E6=96=97=E5=8A=A8?= =?UTF-8?q?=E4=BD=9C=E7=9A=84=E6=8A=80=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../battle/component/battle_unit_comp.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lua/app/module/battle/component/battle_unit_comp.lua b/lua/app/module/battle/component/battle_unit_comp.lua index eb3fe696..e55abca7 100644 --- a/lua/app/module/battle/component/battle_unit_comp.lua +++ b/lua/app/module/battle/component/battle_unit_comp.lua @@ -1102,6 +1102,23 @@ function BattleUnitComp:doNextSkillAttack() self.skillSlowDownTime = nil end local attackName = self.currActiveSkill:getSkillAttackName() + if not attackName then -- 没有攻击动画 + self.currAttackDuration = 0 + self.currAttackKeyTime = 0 + self.battleController:resetTimeSpeed() + local isFinalBlock = true + local isHaveNextAttack = self:getIsHaveNextAvailableActiveSkill() + if not isHaveNextAttack and isFinalBlock then + self.team:setCentralizedAttack(false) + self.team:setIsFinalBlock(isFinalBlock) + end + self:onSkillTakeEffect(self.currActiveSkill, isFinalBlock) + if not isHaveNextAttack and isFinalBlock then + self.battleController:setIsPauseHpProgress(false) + end + return + end + self.currAttackDuration = self:getAnimationDuration(attackName) self.currAttackKeyTime = self:getKeyFrameTime(self.currActiveSkill, 1, attackName) self:playAnimation(attackName, false, false)