[战斗]=====皮肤立绘朝向修改
parent
75cd2cf3a3
commit
bdb02e9fa4
|
@ -427,7 +427,7 @@ function BattleUtil.ChooseTarget(role, chooseId)
|
||||||
return BattleUtil.GetHpPctLessThanPctHero(arr,0.40)
|
return BattleUtil.GetHpPctLessThanPctHero(arr,0.40)
|
||||||
elseif chooseWeight ==13 then --剩余血量百分比低于50%且生命绝对值最小
|
elseif chooseWeight ==13 then --剩余血量百分比低于50%且生命绝对值最小
|
||||||
return BattleUtil.GetHpPctLessThanPctHero(arr,0.50)
|
return BattleUtil.GetHpPctLessThanPctHero(arr,0.50)
|
||||||
elseif chooseWeight ==14 then
|
elseif chooseWeight ==14 then --我方战位最靠前的单位 的对位及相邻
|
||||||
local list=nil
|
local list=nil
|
||||||
list=RoleManager.Query(function (r) return r.camp == role.camp end)
|
list=RoleManager.Query(function (r) return r.camp == role.camp end)
|
||||||
if list and #list>0 then
|
if list and #list>0 then
|
||||||
|
|
|
@ -716,10 +716,17 @@ function this:ChangeCurentHeroSkinLive(herodata)
|
||||||
end
|
end
|
||||||
if herodata then
|
if herodata then
|
||||||
this.curLiveObj=HeroManager.LoadHerolive1(herodata,this.curObj)
|
this.curLiveObj=HeroManager.LoadHerolive1(herodata,this.curObj)
|
||||||
if herodata.heroConfig then
|
local toward=0
|
||||||
SetHEeroLiveToward(this.curLiveObj,herodata.heroConfig.Toward,herodata.position)
|
local pos=nil
|
||||||
|
if herodata.Type~=0 then
|
||||||
|
local roleCon=ConfigManager.TryGetConfigData(ConfigName.RoleConfig,herodata.Type)
|
||||||
|
if roleCon then
|
||||||
|
toward=roleCon.Toward
|
||||||
|
end
|
||||||
|
else
|
||||||
|
toward=herodata.heroConfig.Toward
|
||||||
end
|
end
|
||||||
|
SetHEeroLiveToward(this.curLiveObj,toward,herodata.Position)
|
||||||
-- 临时保存皮肤位置
|
-- 临时保存皮肤位置
|
||||||
curHeroPosition = herodata.Position
|
curHeroPosition = herodata.Position
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue