From d33b1530147a412e88a32bf1168ca3ac6e9718c6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 20 三月 2026 10:35:50 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(左慈所有技能;技能目标细分增加11-受控目标优先;敌友目标增加3-友方(一定不含自己);7011效果改为无技能目标时触发;)
---
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