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