|
|
@@ -76,9 +76,13 @@ local function genGiftData(human, id,startTime,region,isNew)
|
|
|
}
|
|
|
end
|
|
|
|
|
|
-local function genGift(human,id)
|
|
|
+local function genGift(human,id)
|
|
|
+ local giftCfg = GiftExcel[id]
|
|
|
+ local gitftType = giftCfg and giftCfg.trigger or 0
|
|
|
+
|
|
|
-- 已经触发过礼包了
|
|
|
- if human.db.gift.unlock[id] then
|
|
|
+ -- 新修改: 类型8不受这个影响
|
|
|
+ if human.db.gift.unlock[id] and GIFT_HERO_UPGRADE_STAR_DAILY ~= gitftType then
|
|
|
return
|
|
|
end
|
|
|
human.db.gift.unlock[id] = true
|