【青龙秘宝】========购买秘宝等级报错修改

dev_chengFeng
wangzhenxing 2022-07-04 17:55:34 +08:00
parent 5051094bf6
commit cc883eadff
1 changed files with 2 additions and 2 deletions

View File

@ -80,12 +80,12 @@ function this:Caculate(templv)
for j=1,#reward.Reward do
local id = reward.Reward[j].item[1]
local num = reward.Reward[j].item[2]
if reward.Reward[j].type == 1 then
if reward.Reward[j].type == 1 and id~=0 then
if not direct[id] then
direct[id] = 0
end
direct[id] = direct[id] + num
elseif reward.Reward[j].type == 2 and treasureState then
elseif reward.Reward[j].type == 2 and treasureState and id~=0 then
if not direct[id] then
direct[id] = 0
end