【战斗】修复被动270普通攻击也能触发的问题

dev_chengFeng
gaoxin 2020-11-16 14:04:58 +08:00
parent cec062c993
commit 5301a91738
1 changed files with 4 additions and 2 deletions

View File

@ -5431,8 +5431,10 @@ local passivityList = {
[270] = function(role, args)
local f1 = args[1]
local function onRoleHit(defRole, damage, bCrit, finalDmg, damageType, skill)
local treatValue = floor(damage * f1)
BattleUtil.ApplyTreat(role, role, treatValue)
if skill and skill.type == BattleSkillType.Special then
local treatValue = floor(damage * f1)
BattleUtil.ApplyTreat(role, role, treatValue)
end
end
role.Event:AddEvent(BattleEventName.RoleHit, onRoleHit)
end