被动108 改为自身死亡后就不会反弹伤害

dev_chengFeng
wangzhenxing 2020-08-21 15:59:34 +09:00
parent 0f71f295d2
commit 9a7b7c8eff
1 changed files with 4 additions and 0 deletions

View File

@ -1876,6 +1876,10 @@ local passivityList = {
[108] = function(role, args) [108] = function(role, args)
local f1 = args[1] local f1 = args[1]
local onBeHit = function(caster, damage, bCrit, finalDmg, damageType, skill) local onBeHit = function(caster, damage, bCrit, finalDmg, damageType, skill)
--如果角色死亡就不会反弹伤害
if role:IsDead() then
return
end
if skill then --技能造成的直接伤害 if skill then --技能造成的直接伤害
local rDamage = f1 * damage local rDamage = f1 * damage