From d3490f0c52cf8415dc0d34929bef8849cb37c32e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 16 十二月 2025 18:14:52 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(修复强壮词条bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_Attr.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_Attr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_Attr.py
index 643422c..ceaae8d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_Attr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_Attr.py
@@ -17,7 +17,7 @@
import GameWorld
-def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, **skillkwargs):
+def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
attrID = curEffect.GetEffectID()
attrValue = curEffect.GetEffectValue(0)
@@ -36,6 +36,15 @@
attrValue = maxValue
GameWorld.DebugLog("按对方buff层级增加属性: attrID=%s,attrValue=%s,buffStateList=%s,layerTotal=%s,maxValue=%s"
% (attrID, attrValue, buffStateList, layerTotal, maxValue))
+ # 11-根据自己已损失血量百分比
+ elif calcType == 11:
+ curHP = attacker.GetHP()
+ maxHP = attacker.GetMaxHP()
+ lostPer = int((maxHP - curHP) / float(maxHP) * 100) # 只算取整
+ attrValue = lostPer * attrValue
+ GameWorld.DebugLog("按自身已损失生命百分比增加属性: attrID=%s,attrValue=%s,curHP=%s/%s,lostPer=%s"
+ % (attrID, attrValue, curHP, maxHP, lostPer))
+
else:
checkInStateList = curEffect.GetEffectValue(2)
if checkInStateList:
--
Gitblit v1.8.0