修改战斗表现代码
parent
c8ffd1e928
commit
b5fcc6e3f4
|
@ -77,7 +77,7 @@ function SkillCaster:OnSkillCast(skill)
|
||||||
-- elseif self.owner.SkillAttackDisplaceoffset then
|
-- elseif self.owner.SkillAttackDisplaceoffset then
|
||||||
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
|
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
|
||||||
-- end
|
-- end
|
||||||
if skill.AttackDisplaceOffset and tonumber(skill.AttackDisplaceOffset)~nil then
|
if skill.AttackDisplaceOffset and tonumber(skill.AttackDisplaceOffset) ~= nil then
|
||||||
displaceoffset=skill.AttackDisplaceOffset
|
displaceoffset=skill.AttackDisplaceOffset
|
||||||
end
|
end
|
||||||
self.owner.GameObject:SetActive(false)
|
self.owner.GameObject:SetActive(false)
|
||||||
|
@ -98,13 +98,13 @@ function SkillCaster:OnSkillCast(skill)
|
||||||
-- 播放
|
-- 播放
|
||||||
-- 这里相当于技能前摇,等待立绘播放到需要释放关键帧的时间时继续释放技能(人物前摇特效)
|
-- 这里相当于技能前摇,等待立绘播放到需要释放关键帧的时间时继续释放技能(人物前摇特效)
|
||||||
if combat.AttackDisplacement ==1 then
|
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
|
-- if skill.type==2 and self.owner.superSkillAttackDisplaceoffset then
|
||||||
-- displaceoffset=self.owner.superSkillAttackDisplaceoffset
|
-- displaceoffset=self.owner.superSkillAttackDisplaceoffset
|
||||||
-- elseif self.owner.SkillAttackDisplaceoffset then
|
-- elseif self.owner.SkillAttackDisplaceoffset then
|
||||||
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
|
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
|
||||||
-- end
|
-- end
|
||||||
if skill.AttackDisplaceOffset then
|
if skill.AttackDisplaceOffset and tonumber(skill.AttackDisplaceOffset) ~= nil then
|
||||||
displaceoffset=skill.AttackDisplaceOffset
|
displaceoffset=skill.AttackDisplaceOffset
|
||||||
end
|
end
|
||||||
self.owner.GameObject:SetActive(false)
|
self.owner.GameObject:SetActive(false)
|
||||||
|
|
Loading…
Reference in New Issue