From 32f92cf196d36588653093f9a27d3ce41df2b9ca Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 07 四月 2021 17:42:12 +0800
Subject: [PATCH] 8886 【BT2】【后端】线下活动支持(增加单笔累充系统)
---
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