From e988d6e02bd04309a806c0bdee99aad200f64e36 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 31 五月 2019 15:19:30 +0800
Subject: [PATCH] 6975 【2.0】【后端】日常界面调整(升级给活跃点)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py
index c3b75c3..366af91 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py
@@ -36,9 +36,12 @@
     if not msgList:
         GameWorld.DebugAnswer(curPlayer, "AddFairyEvent 事件ID")
         return
-    fdEventIDList = msgList
+    maxEventCnt = PlayerFairyDomain.GetMaxEventCnt()  # 最大可出现事件个数
+    if len(msgList) > maxEventCnt:
+        GameWorld.DebugAnswer(curPlayer, "最大事件数量 %s"%maxEventCnt)
+    fdEventIDList = msgList[:maxEventCnt]
     openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
-    maxEventCnt = PlayerFairyDomain.GetMaxEventCnt() #最大可出现事件个数
+
     for i in xrange(maxEventCnt):
         prefdEventID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainEventID % i)
         if prefdEventID:

--
Gitblit v1.8.0