diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua index b0a9654339..13f418ef81 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua @@ -427,6 +427,12 @@ function BattleUtil.ChooseTarget(role, chooseId) return BattleUtil.GetHpPctLessThanPctHero(arr,0.40) elseif chooseWeight ==13 then --剩余血量百分比低于50%且生命绝对值最小 return BattleUtil.GetHpPctLessThanPctHero(arr,0.50) + elseif chooseWeight ==14 then + local list=nil + list=RoleManager.Query(function (r) return r.camp == role.camp end) + if list and #list>0 then + arr=RoleManager.GetNeighbor(list[1], chooseType) + end end local finalArr = {} if num == 0 then diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua index 7d3dd90da7..7065cc0c0f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua @@ -169,6 +169,8 @@ function MonsterView:OnSkillCastStart(skill) end end end + local offset = self.camp == 0 and self.offset or self.outOffset + self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(offset[1], offset[2]) if name then self.RoleLiveGO3=nil local aaa1=Util.GetGameObject(self.skillCastRoot.gameObject.transform.parent,name)