[战斗]=====被动214,238修改 bug:1014491 1013881

dev_chengFeng
wangzhenxing 2021-04-08 21:09:29 +08:00
parent 19ba1ffc5a
commit d19f1cce1c
1 changed files with 22 additions and 1 deletions

View File

@ -4513,7 +4513,7 @@ local passivityList = {
local list = RoleManager.Query(function(r) return r.camp == defRole.camp and r ~= defRole end)
for _, r in ipairs(list) do
local dd = floor(BattleUtil.ErrorCorrection(damage* f1))
BattleUtil.ApplyDamage(nil, role, r, dd)
BattleUtil.ApplyDamage(nil, atkRole, r, dd)
end
end
end
@ -5047,8 +5047,29 @@ local passivityList = {
local ct2 = args[7]
if OutDataManager.GetOutData(role.camp,id) == flr then
local hp=0
local hp2=0
--如果提升的是血量上限
if pro1==12 or pro2==12 then
hp = role:GetRoleData(RoleDataName.Hp) / role:GetRoleData(RoleDataName.MaxHp)
end
BattleUtil.AddProp(role, pro1, f1, ct1)
BattleUtil.AddProp(role, pro2, f2, ct2)
--如果提升的是血量上限
if pro1==12 or pro2==12 then
hp2 = role:GetRoleData(RoleDataName.Hp) / role:GetRoleData(RoleDataName.MaxHp)
local pro=hp-hp2
local treat= floor(BattleUtil.ErrorCorrection(role:GetRoleData(RoleDataName.MaxHp)*pro))
role.data:AddValue(RoleDataName.Hp, treat)
BattleLogManager.Log(
"Final Treat",
"acamp", role.camp,
"apos", role.position,
"tcamp", role.camp,
"tpos", role.position,
"value", treat
)
end
end
end,
-- 猎妖之路专属