【战斗】=========被动428提交
parent
4d97370a24
commit
ba38abcdaf
|
@ -10999,7 +10999,38 @@ local passivityList = {
|
|||
role.Event:AddEvent(BattleEventName.SkillCast, onSkillCast,nil,nil,role)
|
||||
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillCastEnd,nil,nil,role)
|
||||
end,
|
||||
--回合开始前,为我方[a]属性最[b]神将[c]改变[d]点怒气,为敌方[e]属性最[f]神将[g]改变[h]点怒气,每局可触发[i]次
|
||||
-- a[int],b[int],c[int],d[int],e[int],f[int],g[int],h[int],i[int]
|
||||
[428] = function(role, args,id,judge)
|
||||
local p1 = args[1]
|
||||
local s1 = args[2]
|
||||
local ct1= args[3]
|
||||
local v1 = args[4]
|
||||
local p2 = args[5]
|
||||
local s2 = args[6]
|
||||
local ct2= args[7]
|
||||
local v2 = args[8]
|
||||
local t1 = args[9]
|
||||
local time=0
|
||||
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundStart, function(curRound)
|
||||
if time>=t1 then
|
||||
return
|
||||
end
|
||||
local list = RoleManager.Query(function(v) return v.camp == role.camp end)
|
||||
list = BattleUtil.SortByProp(list, BattlePropList[p1],s1)
|
||||
if list and #list>0 then
|
||||
BattleUtil.CalRage(role,list[1],v1,ct1)
|
||||
end
|
||||
|
||||
local list2 = RoleManager.Query(function(v) return v.camp ~= role.camp end)
|
||||
list2 = BattleUtil.SortByProp(list2, BattlePropList[p2],s2)
|
||||
if list2 and #list2>0 then
|
||||
BattleUtil.CalRage(role,list2[1],v2,ct2)
|
||||
end
|
||||
time=time+1
|
||||
end)
|
||||
end,
|
||||
|
||||
}
|
||||
return passivityList
|
Loading…
Reference in New Issue