From e6d8ac4a946f4e4517309dac041eae3dccd86e17 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 25 十二月 2020 11:29:21 +0800
Subject: [PATCH] 4891 【主干】【BT】伤害超20E防范

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py |    3 ++-
 1 files changed, 2 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 cbf5a03..1ee46f6 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
@@ -2333,7 +2333,8 @@
     hurtValue = int(eval(FormulaControl.GetCompileFormula(hurtFormulaKey, hurtFormula)))
     if isDeadlyHit:
         hurtValue *= deadlyHitMultiValue
-        
+    hurtValue = min(max(hurtValue, 0), ChConfig.Def_UpperLimit_DWord)
+    
     if hurtType == ChConfig.Def_HurtType_Normal and atkSkillPerYinji > 0:
         return hurtValue, ChConfig.Def_HurtType_Yinji
     elif hurtType == ChConfig.Def_HurtType_Normal and SuppressValueRealmRate > 10000:

--
Gitblit v1.8.0