From 885772e34137afba56a4ca8583b62a6f20c2c137 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 11 五月 2019 20:06:21 +0800
Subject: [PATCH] 860312 防范时间掉血 人数为0问题
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
index 0a3a31a..5f54338 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -1831,7 +1831,9 @@
if fightPowerMin:
seePlayer = GameWorld.GetObj(seeObj.GetID(), seeObjType)
fightPowerTotal += (0 if not seePlayer else seePlayer.GetFightPower())
-
+
+ effPlayerCount = max(effPlayerCount, 1)
+
effFightPower = int(fightPowerTotal / effPlayerCount)
if fightPowerMax and effFightPower > fightPowerMax:
effFightPower = fightPowerMax
--
Gitblit v1.8.0