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/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py
index a25efb3..9f104f2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py
@@ -511,6 +511,7 @@
 def DoFBOnKill_Player(atkobj, defender, tick):
     gameFB = GameWorld.GetGameFB()
     atkIsPlayer = atkobj.GetGameObjType() == IPY_GameWorld.gotPlayer
+    baseCnt = IpyGameDataPY.GetFuncCfg('ElderBattlefieldSys', 2)
     addScore = 0
     if atkIsPlayer:
         playerID = atkobj.GetPlayerID()
@@ -526,7 +527,7 @@
         gameFB.SetPlayerGameFBDict(playerID, FBPlayerDict_ContKillCntEx, contKillCntEx)
         #连杀广播
         ckillSysList = IpyGameDataPY.GetFuncCfg('ElderBattlefieldSys', 1)
-        baseCnt = IpyGameDataPY.GetFuncCfg('ElderBattlefieldSys', 2)
+        
         perCnt = IpyGameDataPY.GetFuncCfg('ElderBattlefieldSys', 3)
         if contKillCntEx >= baseCnt and contKillCntEx % perCnt == 0:
             sysIndex = min((contKillCntEx - baseCnt) / perCnt, len(ckillSysList) - 1)

--
Gitblit v1.8.0