From 8e8930230fe679cb031b961b75687402708f325d Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 30 May 2023 11:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E9=94=99?= 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 713bf25e..db0157af 100644 --- a/lua/app/module/battle/component/battle_unit_comp.lua +++ b/lua/app/module/battle/component/battle_unit_comp.lua @@ -907,6 +907,23 @@ function BattleUnitComp:enterSkillAttackState() local attackName = skill:getSkillAttackName() if self.normalSkillCount > 0 then self:attackAndSpeedUp() + else + 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(skill, isFinalBlock) + if not isHaveNextAttack and isFinalBlock then + self.battleController:setIsPauseHpProgress(false) + end + return + end end self.currAttackDuration = self:getAnimationDuration(attackName) self.currAttackKeyTime = self:getKeyFrameTime(skill, 1, attackName)