zhanwencai 1 년 전
부모
커밋
22b7d0514c
3개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. BIN
      script/file.tar.gz
  2. 1 0
      script/module/hero/HeroDefine.lua
  3. 1 0
      script/module/role/NewLogic.lua

BIN
script/file.tar.gz


+ 1 - 0
script/module/hero/HeroDefine.lua

@@ -164,6 +164,7 @@ function getRandHeroByGradeAndCamp(grade, camp)
         end
     end
 
+    -- local heroId = nil --测试
     if heroId ~= nil then
         return heroId
     end

+ 1 - 0
script/module/role/NewLogic.lua

@@ -17,6 +17,7 @@ function NewProto(human, type, param)
     -- Msg.send(msgRet,human.fd)
 
     if type == AD_DRAW_REWARD_TYPE then
+        human.db.adRewardCnt = human.db.adRewardCnt or 0
 
         if human.db.adRewardCnt > 4 then
             Broadcast.sendErr(human, Lang.AD_DRAW_REWARD_LIMIT_ERROR)