From 14661edf6156dbc38b2fe4bdf0a15cceacc52897 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 31 五月 2019 16:04:19 +0800
Subject: [PATCH] 6805 【后端】【2.0】副本前端化(去除木桩非自定义场景召唤限制,最大同时存在木桩数改为3个,设置玩家血量改为玩家掉血)

---
 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