SK_LongZhu
parent
0e3585dd0a
commit
fbd026c575
|
@ -227,8 +227,8 @@ function SkillCaster:OnSkillCast(skill)
|
|||
LogError("技能返回位移Id" ..
|
||||
combat.Id .. "开始时间" .. os.date() .. "==" .. self.owner.RoleLiveGO.name)
|
||||
local Canvas = self.owner.RoleLiveGO.transform.parent.gameObject
|
||||
:GetComponent(
|
||||
"Canvas")
|
||||
:GetComponent(
|
||||
"Canvas")
|
||||
if Canvas == nil then
|
||||
Canvas = self.owner.RoleLiveGO.transform.parent.parent.gameObject
|
||||
:GetComponent("Canvas")
|
||||
|
@ -429,15 +429,15 @@ function SkillCaster:GetMovePosition(skill)
|
|||
local eid = BattleManager.GetCombatIdBySkin(skill.id, self.owner.skinId)
|
||||
local combat = BattleManager.GetSkillCombat(eid)
|
||||
if targetCamp == 0 then
|
||||
if combat.BeforeEffectType ~= 1 then
|
||||
return MoveMentPosition.My_Front
|
||||
else
|
||||
if targetPos <= 3 then
|
||||
return Vector3.New(MoveMentPosition.My_Front.x, targetY, MoveMentPosition.My_Front.z)
|
||||
if combat.BeforeEffectType ~= 1 then
|
||||
return MoveMentPosition.My_Front
|
||||
else
|
||||
return Vector3.New(MoveMentPosition.My_Behind.x, targetY, MoveMentPosition.My_Behind.z)
|
||||
if targetPos <= 3 then
|
||||
return Vector3.New(MoveMentPosition.My_Front.x, targetY, MoveMentPosition.My_Front.z)
|
||||
else
|
||||
return Vector3.New(MoveMentPosition.My_Behind.x, targetY, MoveMentPosition.My_Behind.z)
|
||||
end
|
||||
end
|
||||
end
|
||||
--return targetPos <= 3 and MoveMentPosition.My_Front or MoveMentPosition.My_Behind
|
||||
else
|
||||
if combat.BeforeEffectType ~= 1 then
|
||||
|
@ -455,7 +455,9 @@ function SkillCaster:GetMovePosition(skill)
|
|||
local eid = BattleManager.GetCombatIdBySkin(skill.id, self.owner.skinId)
|
||||
local combat = BattleManager.GetSkillCombat(eid)
|
||||
local col = (targetPos - 1) % 3 + 1
|
||||
if targetPos <= 3 or combat.BeforeEffectType ~= 1 then
|
||||
if combat.BeforeEffectType == 2 then
|
||||
return targetCamp == 0 and MoveMentPosition.My_All or MoveMentPosition.Enemy_All
|
||||
elseif targetPos <= 3 or combat.BeforeEffectType ~= 1 then
|
||||
return targetCamp == 0 and MoveMentPosition["My_COL_" .. col] or MoveMentPosition["Enemy_COL_" .. col]
|
||||
else
|
||||
return targetCamp == 0 and (MoveMentPosition["My_COL_" .. col] + Vector3.New(-1, 0, 0)) or
|
||||
|
|
Loading…
Reference in New Issue