gitxsm 3 месяцев назад
Родитель
Сommit
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)