From 9a33274e49d1c162a506ac1f62d4f793b74af140 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 27 五月 2024 12:03:27 +0800
Subject: [PATCH] 10162 后台优化(砍树 查询玩家增加 仙桃、灵玉显示)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_808.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_808.py
index c05b271..924b3bc 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_808.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_808.py
@@ -11,9 +11,9 @@
 #
 #---------------------------------------------------------------------
 
-import ChConfig
 import GameWorld
 import SkillCommon
+import GameObj
 
 def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
     curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID)
@@ -34,13 +34,13 @@
     buffValue = buff.GetValue()
     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