【战斗】======257被动修改

dev_chengFeng
wangzhenxing 2021-12-07 21:19:14 +08:00
parent 16c16dda5f
commit 4c92d13393
1 changed files with 21 additions and 18 deletions

View File

@ -5684,23 +5684,25 @@ local passivityList = {
return
end
if skill and skill.owner==role and (skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra) and target:IsDead() and not BattleUtil.CheckIsNoDead(target) then
local dmg= floor(BattleUtil.ErrorCorrection((damage-finalDmg)*f1))
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
list = BattleUtil.SortByHpFactor(list,0)
-- if not list[1]:IsDead() then
if list then
if not point then
point=list[1]
end
BattleUtil.FinalDamage(nil,role,point,dmg)
if curNum>=maxNum then
return
end
if num>0 then
BattleUtil.CalRage(role,point,num,CountTypeName.Sub)
curNum=curNum+num
end
end
BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime,function()
local dmg= floor(BattleUtil.ErrorCorrection((damage-finalDmg)*f1))
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
list = BattleUtil.SortByHpFactor(list,0)
-- if not list[1]:IsDead() then
if list then
if not point then
point=list[1]
end
BattleUtil.FinalDamage(nil,role,point,dmg)
if curNum>=maxNum then
return
end
if num>0 then
BattleUtil.CalRage(role,point,num,CountTypeName.Sub)
curNum=curNum+num
end
end
end)
end
end
role.Event:AddEvent(BattleEventName.RoleHit, onRoleHit,nil,nil,role)
@ -10163,6 +10165,7 @@ local passivityList = {
end
role.Event:AddEvent(BattleEventName.BuffCaster, OnBuffStart,nil,nil,role)
end
end,
}
return passivityList