From 6ccc82cff0bc5ecd2734253d4c5ef1ae2bb748da Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 九月 2020 12:24:13 +0800
Subject: [PATCH] 8483 【后端】【主干】【changwei】【bt】协助方和被协助方任何模式不会互相造成伤害(优化协助同一玩家的情况)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_AddBuff.py |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_AddBuff.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_AddBuff.py
index aa4b774..b9e0c49 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_AddBuff.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_AddBuff.py
@@ -15,8 +15,7 @@
 #"""Version = 2019-03-19 21:00""" 
 #---------------------------------------------------------------------
 import GameWorld
-import SkillCommon
-import BuffSkill
+import SkillShell
 #---------------------------------------------------------------------
 
 ## XX
@@ -41,14 +40,11 @@
     buffID = GameWorld.ToIntDef(funResult, 0)
     if not buffID:
         return
-    
-    skillBuff = GameWorld.GetGameData().GetSkillBySkillID(buffID)
-    if not skillBuff:
-        GameWorld.Log("GY_Query_AddBuff   找不到技能%s" % buffID, playerID)
+    #SkillCommon.AddBuffBySkillType(curPlayer, buffID, tick)
+    curSkill = GameWorld.GetGameData().GetSkillBySkillID(buffID)
+    if not curSkill:
         return
-
-    buffType = SkillCommon.GetBuffType(skillBuff)
-    BuffSkill.DoAddBuff(curPlayer, buffType, skillBuff, tick)
+    SkillShell.__DoLogic_AddBuff(curPlayer, curPlayer, curSkill, False, tick, 0, 0)
     return
 
 

--
Gitblit v1.8.0