gitxsm преди 5 месеца
родител
ревизия
1ccbb04e3c
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      script/module/anotherWorldBattle/AnotherWorldBattleCS.lua

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

@@ -1526,8 +1526,8 @@ local function challenge_Win(msg)
     -- end
     local pChallengeTimes, pLastTime = getPlayerChallengeTimesInfo(playerUuid)
     atkPlayerData.challengeTimes = pChallengeTimes - 1
-    if pLastTime == 0 then
-        pLastTime=  os.time()
+    if pLastTime <= 0 then
+        pLastTime = os.time()
     end
     atkPlayerData.lastTime = pLastTime
 
@@ -1602,8 +1602,8 @@ local function challenge_Fail(msg)
     -- end
     local pChallengeTimes, pLastTime = getPlayerChallengeTimesInfo(playerUuid)
     playerData.challengeTimes = pChallengeTimes - 1
-    if pLastTime == 0 then
-        pLastTime=  os.time()
+    if pLastTime <= 0 then
+        pLastTime = os.time()
     end
     playerData.lastTime = pLastTime