修改战斗表现代码

onepiece_demo_arena
xiejun 2023-10-28 17:55:30 +08:00
parent c8ffd1e928
commit b5fcc6e3f4
1 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ function SkillCaster:OnSkillCast(skill)
-- elseif self.owner.SkillAttackDisplaceoffset then
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
-- end
if skill.AttackDisplaceOffset and tonumber(skill.AttackDisplaceOffset)~nil then
if skill.AttackDisplaceOffset and tonumber(skill.AttackDisplaceOffset) ~= nil then
displaceoffset=skill.AttackDisplaceOffset
end
self.owner.GameObject:SetActive(false)
@ -98,13 +98,13 @@ function SkillCaster:OnSkillCast(skill)
-- 播放
-- 这里相当于技能前摇,等待立绘播放到需要释放关键帧的时间时继续释放技能(人物前摇特效)
if combat.AttackDisplacement ==1 then
local displaceoffset={[1]={[1]=0.4,[2]=-0.2}}
local displaceoffset={[1]=0.4,[2]=-0.2}
-- if skill.type==2 and self.owner.superSkillAttackDisplaceoffset then
-- displaceoffset=self.owner.superSkillAttackDisplaceoffset
-- elseif self.owner.SkillAttackDisplaceoffset then
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
-- end
if skill.AttackDisplaceOffset then
if skill.AttackDisplaceOffset and tonumber(skill.AttackDisplaceOffset) ~= nil then
displaceoffset=skill.AttackDisplaceOffset
end
self.owner.GameObject:SetActive(false)