From dbcfd3f16072fb70909f6f6e209e437af97c98a6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 03 六月 2019 11:40:20 +0800
Subject: [PATCH] 6969 【2.0】【后端】缥缈仙域奇遇(奇遇可能随不出问题)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
index d3bc12b..3cf84f1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
@@ -150,7 +150,7 @@
     else:
         fdEventTypeDict = {}
         #先随机独立事件
-        singleEventRateDict = IpyGameDataPY.GetFuncCfg('ImmortalDomain')
+        singleEventRateDict = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 1, {})
         for eventType, rate in singleEventRateDict.items():
             if GameWorld.CanHappen(rate):
                 fdEventTypeDict[eventType] = 1
@@ -160,8 +160,8 @@
             otherEventRateList = copy.deepcopy(IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 3))
             unRepeatTypeList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 4)
             for _ in xrange(otherCnt):
-                otherEventType = GameWorld.GetResultByRandomList(otherEventRateList, 0)
-                if not otherEventType:
+                otherEventType = GameWorld.GetResultByRandomList(otherEventRateList)
+                if otherEventType is None:
                     continue
                 if otherEventType in unRepeatTypeList:
                     for index, info in enumerate(otherEventRateList):

--
Gitblit v1.8.0