【战斗】======================被动355修改

onepiece_demo_arena
wangzhenxing 2023-10-30 10:29:04 +08:00
parent b5fcc6e3f4
commit 325bdc2b2d
1 changed files with 10 additions and 2 deletions

View File

@ -8697,8 +8697,8 @@ local passivityList = {
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundStart,onRoundStart,nil,nil,role)
end,
--[a]数回合,自身释放技能,己方全体神将 [b]属性[c]改变[d]%,持续[e]回合(e0为永久)
--a[int 1:奇数 0偶数 ] b[int 属性id], c[int 改变类型], d[float],e[int]
--[a]数回合,自身释放技能,己方全体神将 [b]属性[c]改变[d]%,持续[e]回合(e0为永久) [f]属性[g]改变[h]%,持续[i]回合(f,g,h,i不配就不会增加)
--a[int 1:奇数 0偶数 ] b[int 属性id], c[int 改变类型], d[float],e[int], f[int 属性id], g[int 改变类型], h[float],i[int]
[355]=function(role,args,id,judge)
local type = args[1]
local pro = args[2]
@ -8706,6 +8706,11 @@ local passivityList = {
local v1 = args[4]
local round = args[5]
local pro2 = args[6]
local ct2 = args[7]
local v2 = args[8]
local round2 = args[9]
local isTrigger=false
local onSkillCast = function(skill)
if not skill then
@ -8727,6 +8732,9 @@ local passivityList = {
local list = RoleManager.Query(function(v) return role.camp == v.camp end)
for _, r in pairs(list) do
r:AddBuff(Buff.Create(role, BuffName.PropertyChange, round, BattlePropList[pro],v1, ct))
if pro2 and ct2 and v2 and round2 then
r:AddBuff(Buff.Create(role, BuffName.PropertyChange, round2, BattlePropList[pro2],v2, ct2))
end
end
isTrigger=true
end