时空猪八戒技能修改

dev_chengFeng
yuanshuai 2023-05-16 15:19:44 +08:00
parent 63fc1c6ee2
commit 7fc9813a7f
1 changed files with 4 additions and 2 deletions

View File

@ -12315,8 +12315,10 @@ local passivityList = {
end
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd,nil,nil,role)
end,
-- 队友受到致命伤害后伤害转移给自身每场战斗每个武将限1次
-- 队友受到致命伤害后,伤害转移给自身,并且伤害降低百分之[a]的伤害每场战斗每个武将限1次
-- a[float]//伤害百分比
[467] = function(role, args)
local a=args[1]
local triggerList={}
local onDamShift = function(func,atkRole,damage,defRole,skill)
if BattleUtil.ChecklistIsContainValue(triggerList,defRole.position) then
@ -12329,7 +12331,7 @@ local passivityList = {
if damage > curHp then
table.insert(triggerList,defRole.position)
BattleUtil.ApplyDamage(skill, atkRole, role, damage)
BattleUtil.ApplyDamage(skill, atkRole, role, damage*a)
func(true)
end
end