修改skillcaste

onepiece_demo_arena
xiejun 2023-12-19 15:54:22 +08:00
parent 8476f67c95
commit d7c12e434a
1 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,7 @@ function SkillCaster:OnSkillCast(skill)
-- elseif self.owner.SkillAttackDisplaceoffset then
-- displaceoffset=self.owner.SkillAttackDisplaceoffset
-- end
if skill.AttackDisplaceOffset then
if skill.AttackDisplaceOffset and type(skill.AttackDisplaceOffset[1])~="userdata" then
displaceoffset=skill.AttackDisplaceOffset
end
self.owner.GameObject:SetActive(false)
@ -364,7 +364,8 @@ local MoveMentPosition = {
Enemy_COL_2 = Vector3.New(2.7,-1.5, 0),--第二行
Enemy_COL_3 = Vector3.New(2.7,-1.8, 0),--第三行
}
function SkillCaster:GetEffectSPostion(skill)
function SkillCaster:GetEffectPostion(skill)
local chooseId = skill:GetDirectChooseId()
local chooseLimit = math.floor(chooseId / 10000) % 10