From 3e236bdc51a439594c52f0c558006d3f52997bfe Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 08 十二月 2018 10:45:28 +0800
Subject: [PATCH] 4581 上古战场报错修复
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Boss.py | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Boss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Boss.py
index 4be72f3..e9213c6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Boss.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Boss.py
@@ -40,21 +40,22 @@
mapID = GameWorld.GetMap().GetMapID()
dataList = IpyGameDataPY.GetIpyGameDataByCondition('BOSSInfo', {"MapID":mapID}, returnList=True)
- if not dataList:
- return
- for ipyData in dataList:
- bossID = ipyData.GetNPCID()
- if not bossID:
- continue
-
- key = ShareDefine.Def_Notify_WorldKey_GameWorldBossReborn % bossID
- GameWorld.GetGameWorld().SetGameWorldDict(key, 1)
-
- bossKey = ChConfig.Map_NPC_WorldBossLastReBornTick % bossID
- GameWorld.GetGameFB().SetGameFBDict(bossKey, 0)
-
- bossKey = ChConfig.Map_NPC_WorldBossLastReBornTick % ipyData.GetStoneNPCID()
- GameWorld.GetGameFB().SetGameFBDict(bossKey, 0)
+ if dataList:
+ for ipyData in dataList:
+ bossID = ipyData.GetNPCID()
+ if not bossID:
+ continue
+
+ key = ShareDefine.Def_Notify_WorldKey_GameWorldBossReborn % bossID
+ GameWorld.GetGameWorld().SetGameWorldDict(key, 1)
+
+ bossKey = ChConfig.Map_NPC_WorldBossLastReBornTick % bossID
+ GameWorld.GetGameFB().SetGameFBDict(bossKey, 0)
+
+ bossKey = ChConfig.Map_NPC_WorldBossLastReBornTick % ipyData.GetStoneNPCID()
+ GameWorld.GetGameFB().SetGameFBDict(bossKey, 0)
+
+ GameWorld.GetGameFB().SetGameFBDict(ChConfig.Map_NPC_ActivityBossRebornCount % ipyData.GetRefreshMark(), 0)
gameNPCManager = GameWorld.GetNPCManager()
tick = GameWorld.GetGameWorld().GetTick()
--
Gitblit v1.8.0