From 0b52fea0c2dec053c44678d94bd66c10db1b0b91 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 06 四月 2021 17:27:57 +0800
Subject: [PATCH] 8870 【BT2】【后端】战力、伤害、玩家生命的数值调整为大数值(超21亿)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_33.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_33.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_33.py
index e6490ce..58ec53a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_33.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_33.py
@@ -21,6 +21,7 @@
 import ChConfig
 #import GameWorld
 import BaseAttack
+import GameObj
 
 ##链式攻击
 # @param attacker 攻击者实例
@@ -33,13 +34,14 @@
 # @return 返回值为真, 释放成功
 # @remarks 链式攻击
 def UseSkill(attacker, defender, curSkill, tagRoundPosX, tagRoundPosY, isEnhanceSkill, tick):
-    lastHurtValue = attacker.GetDictByKey(ChConfig.Def_PlayerKey_LastHurtValue) # 最后一击伤害值
+    lastHurtValue = GameObj.GetLastHurtValue(attacker) # 最后一击伤害值
     #技能增强值
     skillPer = curSkill.GetEffect(0).GetEffectValue(0)
     #技能附加值
     addValue = curSkill.GetEffect(0).GetEffectValue(1)
     
     lostHP = int((lastHurtValue * skillPer / float(ChConfig.Def_MaxRateValue)) + addValue)
+    lostHP = min(lostHP, ChConfig.Def_UpperLimit_DWord)
     
     if defender and tagRoundPosX == -1 and tagRoundPosY == -1:
         #起点是攻击方,还是受害方,还是点地

--
Gitblit v1.8.0