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

dev_chengFeng
wangzhenxing 2022-01-15 14:38:56 +08:00
parent e8f8f5ca59
commit c083c2c903
1 changed files with 6 additions and 4 deletions

View File

@ -10779,10 +10779,12 @@ local passivityList = {
local p2=args[3]
local v2=args[4]
if target~=role and target.camp==role.camp and not BattleUtil.CheckIsNoDead(target) then
BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime*2, function ()
local tv = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[p1]) * v1))
local tv2 = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[p2]) * v2))
BattleUtil.FinalTreat(role,role,tv)
BattleUtil.AddBlood(role,tv2)
end)
end
end
BattleLogic.Event:AddEvent(BattleEventName.BattleRoleDead,onRoleDead,nil,nil,role)