修改位移判断

onepiece_demo_arena
xiejun 2023-10-28 17:40:31 +08:00
parent f4012ea61e
commit c8ffd1e928
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function SkillCaster:OnSkillCast(skill)
-- 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)