PC-202302260912\Administrator 2025-05-23 18:16:38 +08:00
parent 6dfbe197ff
commit 0aa77529e8
2 changed files with 3 additions and 3 deletions

View File

@ -447,8 +447,8 @@ function FightUnitView:GetEffectPosition(skill)
local chooseLimit = math.floor(chooseId / 10000) % 10
local targets = skill:GetDirectTargets()
local targetCamp = targets[1].camp
local targetPos = targets[1].position
local targetCamp = targets[1] and targets[1].camp or 0
local targetPos = targets[1] and targets[1].position or 0
local invert = targetCamp == 0 and 1 or -1

View File

@ -1481,7 +1481,7 @@ function RoleView:GetFightMovePos(skill)
local chooseNum = chooseId % 10
local targets = skill:GetDirectTargets()
local targetCamp
local targetCamp = 0
local targetPos
-- local targetCamp = targets[1].camp
-- local targetPos = targets[1].position