[战斗]=======新英雄技能被动修改提交
parent
ca935de5b9
commit
2f17b7af58
|
|
@ -3097,7 +3097,10 @@ local effectList = {
|
|||
[158] = function(caster, target, args, interval, skill)
|
||||
local pro = args[1]
|
||||
BattleLogic.WaitForTrigger(interval, function ()
|
||||
local value=(skill.ownHero:GetRoleData(RoleDataName.MaxHp)-skill.ownHero:GetRoleData(RoleDataName.Hp))*pro
|
||||
local value=(caster:GetRoleData(RoleDataName.MaxHp)-caster:GetRoleData(RoleDataName.Hp))*pro
|
||||
if value<=0 then
|
||||
return
|
||||
end
|
||||
BattleUtil.FinalDamage(nil, caster, target,floor(value), nil, 0, nil, true)
|
||||
end)
|
||||
end,
|
||||
|
|
|
|||
|
|
@ -12219,16 +12219,22 @@ local passivityList = {
|
|||
end
|
||||
|
||||
end,
|
||||
--行动前,如果自身生命百分比为最低,则给自身[a]属性改变[b][c]%,持续[d]回合
|
||||
--a[int],b[int],c[float],d[int]
|
||||
--行动前,如果自身生命百分比为最低,则给自身[a]属性改变[b][c]%,持续[d]回合,[e]目标选择(1 我方 2 全场)
|
||||
--a[int],b[int],c[float],d[int],e[int]
|
||||
[463] = function(role, args)
|
||||
local pro = args[1]
|
||||
local ct = args[2]
|
||||
local v1 = args[3]
|
||||
local r1 = args[4]
|
||||
local type=args[5]
|
||||
local trigger=nil
|
||||
local onRoleTurnStart=function()
|
||||
local list = RoleManager.Query(function(v) return v.camp == role.camp end)
|
||||
local list=nil
|
||||
if type==1 then
|
||||
list = RoleManager.Query(function(v) return v.camp == role.camp end)
|
||||
else
|
||||
list = RoleManager.Query(function(v) return true end)
|
||||
end
|
||||
--生命最少改成生命百分比最少 2020/09/29 by:王振兴
|
||||
BattleUtil.SortByHpFactor(list, 1)
|
||||
if list[1]==role then
|
||||
|
|
|
|||
|
|
@ -824,7 +824,7 @@ function this:UpdateHeroInfoData()
|
|||
this.unlockImage:SetActive(curHeroData.lockState == 0)
|
||||
this.lockImage:SetActive(curHeroData.lockState == 1)
|
||||
if curHeroData.heroConfig.PropertyName==5 then
|
||||
this.proChangeBtn:SetActive(true)
|
||||
this.proChangeBtn:SetActive(false)
|
||||
else
|
||||
this.proChangeBtn:SetActive(false)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue