删除被动194额外附加伤害也会触发效果的并导致报错的问题,

dev_chengFeng
gaoxin 2020-08-07 10:57:30 +08:00
parent 428ee21777
commit 723531298d
1 changed files with 10 additions and 8 deletions

View File

@ -3714,6 +3714,7 @@ local passivityList = {
local f1 = args[1]
local OnRoleDamageBefore = function(defRole, factorFunc, damageType, skill)
if skill then
local targets = skill:GetDirectTargets()
if not targets or #targets == 0 then return end
local cf = f1/#targets
@ -3725,6 +3726,7 @@ local passivityList = {
end)
end
end
end
role.Event:AddEvent(BattleEventName.RoleDamageBefore, OnRoleDamageBefore)
end,