Преглед на файлове

优化异界之战逻辑

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)