diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua index bdeb5a18b5..a35503a1af 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua @@ -84,7 +84,8 @@ function SkillCaster:OnSkillCast(skill) self.owner.GameObject:SetActive(false) local targets = skill:GetDirectTargets() LogError( tostring(self:GetMovePosition(skill))) - if #targets >0 then + LogError( "最大目标"..tostring(skill:GetMaxTargetNum())) + if skill:GetMaxTargetNum() >1 then local postion= self:GetMovePosition(skill) local posx=0 local posy=0 @@ -356,12 +357,12 @@ local MoveMentPosition = { My_COL_3 = Vector3.New(300, -566, 0), - Enemy_All = Vector3.New(50, 0, 0), --全部 - Enemy_Front = Vector3.New(0, 0, 0),--前面一列 - Enemy_Behind = Vector3.New(1.5,-1 , 0), --后面一列 - Enemy_COL_1 = Vector3.New(990, 916, 0),--第一行 - Enemy_COL_2 = Vector3.New(990, 378, 0),--第二行 - Enemy_COL_3 = Vector3.New(990, -250, 0),--第三行 + Enemy_All = Vector3.New(2.2,-1.3, 0), --全部 + Enemy_Front = Vector3.New(2.2,-1.3, 0),--前面一列 + Enemy_Behind = Vector3.New(3,-1.5 , 0), --后面一列 + Enemy_COL_1 = Vector3.New(2.7,-0.7, 0),--第一行 + Enemy_COL_2 = Vector3.New(2.7,-1.5, 0),--第二行 + Enemy_COL_3 = Vector3.New(2.7,-1.8, 0),--第三行 } function SkillCaster:GetEffectSPostion(skill) local chooseId = skill:GetDirectChooseId() @@ -401,7 +402,7 @@ function SkillCaster:GetMovePosition(skill) end return MoveMentPosition.My_All end - +-- function SkillCaster:GetSkillChooseLimit -- 检测特效旋转 function SkillCaster:CheckRotate(go, orientation) -- if skill ==nil then