From 45fb7dbdb58d53e5d36764324081f9bd6bdcab58 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 21 六月 2024 20:09:42 +0800
Subject: [PATCH] 10185 【越南】【港台】【主干】BOSS凭证修改(有跨服凭证榜活动时验证跨服参与时间点;否则验证本服活动的参与时间点;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_803.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_803.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_803.py
index d6552a9..486e6de 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_803.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_803.py
@@ -11,11 +11,11 @@
 #
 #---------------------------------------------------------------------
 
-import ChConfig
 import GameWorld
 import SkillCommon
+import GameObj
 
-def CheckCanHappen(attacker, defender, passiveEffect, skillID):
+def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
 
     curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID)
     if not curSkill:
@@ -36,12 +36,12 @@
     if buffValue == 0:
         return False
     
-    hurtValue = attacker.GetDictByKey(ChConfig.Def_PlayerKey_BloodShiledHurt)
+    hurtValue = GameObj.GetBloodShiledHurt(attacker)
     if hurtValue == 0:
         return False
     
     buff.SetValue(max(buffValue - hurtValue, 0))
-    attacker.SetDict(ChConfig.Def_PlayerKey_BloodShiledHurt, max(hurtValue - buffValue, 0))
+    GameObj.SetBloodShiledHurt(attacker, max(hurtValue - buffValue, 0))
     
     if buff.GetValue() == 0:
         buff.SetRemainTime(0)

--
Gitblit v1.8.0