From b8d9c89a0ff4c530f7848f0e3f86bf14b85f63f0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 09 十月 2022 18:50:58 +0800
Subject: [PATCH] 9455 【越南】【后端】通天令(改为按固定天数0点重置轮次; 9621【越南】通天令修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTongTianLing.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTongTianLing.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTongTianLing.py
index c20b439..754f86f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTongTianLing.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTongTianLing.py
@@ -16,6 +16,7 @@
 #-------------------------------------------------------------------------------
 
 import GameWorld
+import ShareDefine
 import PlayerControl
 import IpyGameDataPY
 import ChPyNetSendPack
@@ -35,9 +36,12 @@
     SyncTongTianTaskAward(curPlayer)
     return
 
-def OnDay(curPlayer):
+def OnDay(curPlayer, onEventType):
     
-    if CheckTongTianLingReset(curPlayer):
+    if onEventType == ShareDefine.Def_OnEventType:
+        # 常规时间0点过天检查重置
+        if CheckTongTianLingReset(curPlayer):
+            return
         return
     
     resetTaskTypeList, resetTaskIDList = [], []

--
Gitblit v1.8.0