From 84f9abc7067dde4e6b504a1ba2e9f0600a6de46b Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 12 三月 2019 20:58:56 +0800
Subject: [PATCH] 4042 【后端】【2.0】邮件包含附件时不能删除邮件 - 服务端添加防范
---
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py
index 8aa769a..952cf26 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py
@@ -17,6 +17,7 @@
import PyGameData
import GameWorldBoss
import GameWorld
+import time
## 执行逻辑
# @param curPlayer 当前玩家
@@ -33,6 +34,8 @@
killedTime = 0
PyGameData.g_sortBOSSRefreshList[i] = [bossID, killedTime, refreshTime]
bossIDList.append(bossID)
+ curTime = int(time.time())
+ PyGameData.g_sortBOSSRefreshList.sort(key=lambda asd:max(0, asd[2] - (curTime - asd[1])))
GameWorld.DebugAnswer(curPlayer, "重生boss:%s" % bossIDList)
return
--
Gitblit v1.8.0