【战斗】====被动419修改
parent
e8f8f5ca59
commit
c083c2c903
|
@ -10779,10 +10779,12 @@ local passivityList = {
|
||||||
local p2=args[3]
|
local p2=args[3]
|
||||||
local v2=args[4]
|
local v2=args[4]
|
||||||
if target~=role and target.camp==role.camp and not BattleUtil.CheckIsNoDead(target) then
|
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 tv = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[p1]) * v1))
|
||||||
local tv2 = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[p2]) * v2))
|
local tv2 = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[p2]) * v2))
|
||||||
BattleUtil.FinalTreat(role,role,tv)
|
BattleUtil.FinalTreat(role,role,tv)
|
||||||
BattleUtil.AddBlood(role,tv2)
|
BattleUtil.AddBlood(role,tv2)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoleDead,onRoleDead,nil,nil,role)
|
BattleLogic.Event:AddEvent(BattleEventName.BattleRoleDead,onRoleDead,nil,nil,role)
|
||||||
|
|
Loading…
Reference in New Issue