소스 검색

优化异界之战逻辑

gitxsm 3 달 전
부모
커밋
2cebfaefa4
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      script/module/anotherWorldBattle/AnotherWorldBattleCS.lua

+ 4 - 0
script/module/anotherWorldBattle/AnotherWorldBattleCS.lua

@@ -1342,6 +1342,10 @@ function N2C_TryChallengdePoint_Req(msg)
     local targetCityId = msg.targetCityId
     local targetPointIdx = msg.targetPointIdx
 
+    if not isRunning() then
+        return errTips(msg.sourceServerId, playerUuid, AnotherWorldBattleDefine.ERR_CODE_1)
+    end
+
     local pChallengeTimes = getPlayerChallengeTimesInfo(playerUuid)
     if pChallengeTimes <= 0 then
         return errTips(msg.sourceServerId, playerUuid, AnotherWorldBattleDefine.ERR_CODE_12)