From 3ed128401680ce3755dee186f48c7fb965f7aca8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 18 九月 2025 10:11:12 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(诸葛果技能;追击支持;优化连击追击;程序内置限制单武将单次行动中每个对象累计使用技能次数20次;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py
index eaaabdb..3c568d1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py
@@ -1448,6 +1448,8 @@
     for index in range(ipyDataMgr.GetHeroCount()):
         ipyData = ipyDataMgr.GetHeroByIndex(index)
         heroID = ipyData.GetHeroID()
+        if not ipyData.GetPlayerCanUse():
+            continue
         if not GetHeroBookInitState(curPlayer, heroID):
             # 图鉴未激活
             continue
@@ -1476,6 +1478,8 @@
         ipyDataMgr = IpyGameDataPY.IPY_Data()
         for index in range(ipyDataMgr.GetHeroCount()):
             ipyData = ipyDataMgr.GetHeroByIndex(index)
+            if not ipyData.GetPlayerCanUse():
+                continue
             syncHeroIDList.append(ipyData.GetHeroID())
     
     if not syncHeroIDList:

--
Gitblit v1.8.0