From 9b67e4335f655af8c8aef8aa1e7d41e509c50b76 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 12 九月 2025 17:38:35 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(反击改为使用普攻,去除通用反击技能设定;武将特长支持;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
index 18ffeee..ee92f50 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -728,11 +728,9 @@
     
     batObjMgr = BattleObj.GetBatObjMgr()
     initXP = IpyGameDataPY.GetFuncCfg("AngerXP", 1)
-    atkBackSkillIDList = IpyGameDataPY.GetFuncEvalCfg("ParryCfg", 2)
     for posNumKey, heroInfo in heroDict.items():
         posNum = int(posNumKey)
         
-        atkBackSkillID = 0 # 反击技能ID
         fightPower = 0
         skillIDList = [] # 战斗对象可能改变属性或技能,重新创建,防止误修改来源值
         attrDict = {}
@@ -744,6 +742,7 @@
         lv = heroInfo.get("LV", 1)
         heroIpyData = IpyGameDataPY.GetIpyGameData("Hero", heroID) if heroID else None
         if heroIpyData:
+            specialty = heroIpyData.GetSpecialty()
             atkDistType = heroIpyData.GetAtkDistType()
             objName = heroIpyData.GetName()
             country = heroIpyData.GetCountry()
@@ -759,6 +758,7 @@
             if not npcDataEx:
                 continue
             if not heroIpyData:
+                specialty = 0
                 atkDistType = npcDataEx.GetAtkDistType()
                 objName = npcDataEx.GetNPCName()
                 country = npcDataEx.GetCountry()
@@ -779,16 +779,11 @@
         batObj.SetFightPower(fightPower)
         batObj.SetLV(lv)
         batObj.SetAtkDistType(atkDistType)
+        batObj.SetSpecialty(specialty)
         batObj.SetCountry(country)
         batObj.SetSex(sex)
         batObj.SetHero(heroID, skinID)
         
-        if atkDistType == ChConfig.AtkDistType_Short:
-            atkBackSkillID = atkBackSkillIDList[0] if len(atkBackSkillIDList) > 0 else 0
-        elif atkDistType == ChConfig.AtkDistType_Long:
-            atkBackSkillID = atkBackSkillIDList[1] if len(atkBackSkillIDList) > 1 else 0
-        if atkBackSkillID:
-            skillIDList.append(atkBackSkillID)
         skillManager = batObj.GetSkillManager()
         skillManager.SkillReset()
         for skillID in skillIDList:

--
Gitblit v1.8.0