From 88650853f1898815f4612280dd2ffc85af9ddd80 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 25 四月 2019 16:57:33 +0800
Subject: [PATCH] 6607 【2.0】【后端】技能升级功能改版

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
index 70aa00c..fc48a11 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
@@ -914,12 +914,19 @@
     if attacker.GetGameObjType() != IPY_GameWorld.gotPlayer:
         return None
     
-    useSkillTagID = attacker.GetUseSkillTagID()
-    useSkillTagType = attacker.GetUseSkillTagType()
-    
-    curTag = GameWorld.GetObj(useSkillTagID, useSkillTagType)
+    curTag = None
+    if attacker.GetAttackMode() == IPY_GameWorld.amContest:
+        # 单一目标锁定模式
+        curTag = GameWorld.GetObj(attacker.SetDict(ChConfig.Def_PlayerKey_SelectObjID), 
+                                  attacker.SetDict(ChConfig.Def_PlayerKey_SelectObjType))
+        
     if not curTag:
-        return None
+        useSkillTagID = attacker.GetUseSkillTagID()
+        useSkillTagType = attacker.GetUseSkillTagType()
+        
+        curTag = GameWorld.GetObj(useSkillTagID, useSkillTagType)
+        if not curTag:
+            return None
     
     if SkillShell.GetSkillAffectTag(curSkill) == ChConfig.Def_UseSkillTag_CanAttackNPC:
         if NPCCommon.GetNpcObjOwnerIsPlayer(curTag):

--
Gitblit v1.8.0