[战斗]========363被动替换逻辑修改

dev_chengFeng
wangzhenxing 2021-11-12 15:31:01 +08:00
parent 02114f269f
commit 4756c0b19e
1 changed files with 4 additions and 4 deletions

View File

@ -125,12 +125,12 @@ function RoleLogic:Init(uid, data, position)
local len=floor((#coverArgs-1)/2)
for i = 1, len do
local id=0
if #coverArgs>i+1 then
id=coverArgs[i+1]
if #coverArgs>i+i then
id=coverArgs[i+i]
end
local value=0
if #coverArgs>=i+2 then
value=coverArgs[i+2]
if #coverArgs>=i+i+1 then
value=coverArgs[i+i+1]
end
if id~=0 and value~=0 and #args>=id and args[id] then
args[id]=value