浏览代码

异界之战修改

gitxsm 3 月之前
父节点
当前提交
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