【战斗】修复被动270普通攻击也能触发的问题
parent
cec062c993
commit
5301a91738
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue