From af4a4ec6959696ce0f292de9c7f4a77a6814fc0c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 十月 2025 12:06:21 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(修复无公会时更新缓存公会旗号报错;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldRush.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldRush.py
index e345976..897d3b8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldRush.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldRush.py
@@ -184,6 +184,7 @@
     if passSeconds < cdSeconds:
         return
     recoverCnt = passSeconds / cdSeconds
+    recoverCnt = min(recoverCnt, maxEnergy - curEnergy)
     updRecoverTime = curTime - passSeconds % cdSeconds
     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GoldRushRecoverTime, updRecoverTime)
     GameWorld.DebugLog("恢复淘金令: %s,passSeconds=%s,上次恢复:%s" % (recoverCnt, passSeconds, GameWorld.ChangeTimeNumToStr(lastRecoverTime)))

--
Gitblit v1.8.0