From b30b110fc4e5901fde2cd4e4e6444bbd32980d86 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 29 一月 2026 14:25:04 +0800
Subject: [PATCH] 423 【内政】命格系统-服务端(命格装备增加A814回包,类型27;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/FormulaControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/FormulaControl.py
index 650611d..34f6807 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/FormulaControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/FormulaControl.py
@@ -112,7 +112,7 @@
     try:
         # 执行计算
         value = eval(compileFormula, safe_env)
-        if ndigits > 0:
+        if ndigits > 0 and not isinstance(value, int):
             value = round(value, ndigits)
         if ceil:
             value = math.ceil(value)

--
Gitblit v1.8.0