From 10515f568bac5181834ea53acc47e7e41c7fe38b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 25 三月 2026 11:14:52 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(优化一定包含自己逻辑确保一定包含自己;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py
index 3ce8ef6..a18aa94 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py
@@ -524,9 +524,9 @@
# 一定包含自己
if tagFriendly == 2 and not isNoSelf:
- if curBatObj not in aimObjList:
- aimObjList.append(curBatObj)
-
+ aimObjList.remove(curBatObj)
+ aimObjList.insert(0, curBatObj)
+
# 最后去除多余的目标
if tagCount and len(aimObjList) > tagCount:
aimObjList = aimObjList[:tagCount]
--
Gitblit v1.8.0