Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev
This commit is contained in:
commit
d4b477410d
@ -1102,6 +1102,23 @@ function BattleUnitComp:doNextSkillAttack()
|
|||||||
self.skillSlowDownTime = nil
|
self.skillSlowDownTime = nil
|
||||||
end
|
end
|
||||||
local attackName = self.currActiveSkill:getSkillAttackName()
|
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.currAttackDuration = self:getAnimationDuration(attackName)
|
||||||
self.currAttackKeyTime = self:getKeyFrameTime(self.currActiveSkill, 1, attackName)
|
self.currAttackKeyTime = self:getKeyFrameTime(self.currActiveSkill, 1, attackName)
|
||||||
self:playAnimation(attackName, false, false)
|
self:playAnimation(attackName, false, false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user