From 01524938c6d455b3b8e3a35f7b82b7de71de2c19 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 18 十一月 2024 16:51:26 +0800
Subject: [PATCH] 10261 【越南】【砍树】【英文】【tqxbqy】【btgotq】头像框,头像(补充跨服榜单Value3、Value4,包含古神参与、召集、积分榜,boss历练活动榜、古宝养成活动榜、骑宠养成活动榜、仙匣秘境活动榜;)

---
 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