受到伤害时,如果攻击者处于嘲讽状态回复自身[a]点怒气

dev_chengFeng
yuanshuai 2023-05-15 18:21:04 +08:00
parent 8005fbe6d7
commit d73e8d0bfc
1 changed files with 12 additions and 1 deletions

View File

@ -12315,7 +12315,7 @@ local passivityList = {
end
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd,nil,nil,role)
end,
-- 受到致命伤害后伤害转移给a神将每场战斗每个武将限1次
-- 队友受到致命伤害后,伤害转移给自身每场战斗每个武将限1次
[467] = function(role, args)
local triggerList={}
local onDamShift = function(func,atkRole,damage,defRole,skill)
@ -12362,5 +12362,16 @@ local passivityList = {
end
end,nil,nil,role)
end,
-- 受到伤害时,如果攻击者处于嘲讽状态回复自身[a]点怒气
[469] = function(role, args)
local a=args[1]
local BeDamagedFun = function(atkRole)
if BattleLogic.BuffMgr:HasBuff(atkRole, BuffName.Control, function (buff) return buff.ctrlType == 3 end) then
BattleUtil.CalRage(role, role, a, CountTypeName.Add)
end
end
role.Event:AddEvent(BattleEventName.RoleBeDamaged, BeDamagedFun,nil,nil,role)
end,
}
return passivityList