【战斗】================增加304被动
parent
94f31a58da
commit
33d0c7a2fd
|
@ -3465,12 +3465,12 @@ local passivityList = {
|
|||
end
|
||||
|
||||
local function onSkillCast(skill)
|
||||
if skill.type == BattleSkillType.Special then
|
||||
if skill.type == BattleSkillType.Special or skill.type==BattleSkillType.DeadSkill then
|
||||
role.Event:AddEvent(BattleEventName.PassiveTreatingFactor, onPassiveTreatingFactor)
|
||||
end
|
||||
end
|
||||
local function onSkillCastEnd(skill)
|
||||
if skill.type == BattleSkillType.Special then
|
||||
if skill.type == BattleSkillType.Special or skill.type==BattleSkillType.DeadSkill then
|
||||
role.Event:RemoveEvent(BattleEventName.PassiveTreatingFactor, onPassiveTreatingFactor)
|
||||
-- 对每个目标附加减伤盾
|
||||
local targets = skill:GetDirectTargets()
|
||||
|
@ -6371,6 +6371,22 @@ local passivityList = {
|
|||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoleDead, OnDead)
|
||||
end,
|
||||
|
||||
-- 战斗第[a]回合,改变[b] 自身属性[c] [d]%,持续[e]回合
|
||||
-- a[int] b[int 改变类型] c[int 属性id] d[float/int] d[int]
|
||||
[304] = function(role, args,id,judge)
|
||||
local i1 = args[1]
|
||||
local ct = args[2]
|
||||
local p1 = args[3]
|
||||
local v1 = args[4]
|
||||
local round = args[5]
|
||||
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound)
|
||||
-- 第i1回合开始
|
||||
if curRound == i1 then
|
||||
role:AddBuff(Buff.Create(role, BuffName.PropertyChange,round, BattlePropList[p1],v1, ct))
|
||||
end
|
||||
end)
|
||||
end,
|
||||
|
||||
}
|
||||
return passivityList
|
Loading…
Reference in New Issue