From cb018a575005f873135fab3201d1bf6d408e2b6a Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 18 九月 2025 14:50:31 +0800
Subject: [PATCH] 125 【战斗】战斗系统 技能表现修改

---
 Main/System/Battle/Skill/SkillBase.cs |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/Main/System/Battle/Skill/SkillBase.cs b/Main/System/Battle/Skill/SkillBase.cs
index 049ac80..09f6301 100644
--- a/Main/System/Battle/Skill/SkillBase.cs
+++ b/Main/System/Battle/Skill/SkillBase.cs
@@ -376,10 +376,13 @@
 			return;
 
 		// 楂樹寒鎵�鏈夌洰鏍�
-		List<BattleObject> highlightList = battleField.battleObjMgr.GetBattleObjList(tagUseSkillAttack);
+		List<BattleObject> targetList = battleField.battleObjMgr.GetBattleObjList(tagUseSkillAttack);
+		List<BattleObject> highlightList = new List<BattleObject>(targetList);
 		highlightList.Add(caster);
 
 		List<BattleObject> allList = battleField.battleObjMgr.allBattleObjDict.Values.ToList<BattleObject>();
+
+		caster.heroInfoBar.SetActive(false);
 
 		for (int i = 0; i < allList.Count; i++)
 		{
@@ -387,6 +390,7 @@
 			if (highlightList.Contains(bo))
 			{
 				bo.layerMgr.SetFront();
+				bo.heroInfoBar.SetActive(true);
 				bo.heroRectTrans.SetParent(battleField.battleRootNode.skillFrontNode, true);
 			}
 			else
@@ -394,7 +398,18 @@
 				bo.layerMgr.SetBack();
 				bo.heroRectTrans.SetParent(battleField.battleRootNode.skillBackNode, true);
 			}
+
+			if (targetList.Contains(bo))
+			{
+				bo.heroInfoBar.SetActive(true);
+			}
+			else
+			{
+				bo.heroInfoBar.SetActive(false);
+			}
 		}
+
+		caster.layerMgr.SetSortingOrder(BattleConst.ActiveHeroActionSortingOrder);
 
 		battleField.battleRootNode.skillMaskNode.SetActive(true);
 
@@ -635,9 +650,11 @@
 				BattleObject bo = allList[i];
 				bo.layerMgr.SetFront();
 				bo.heroRectTrans.SetParent(battleField.GetTeamNode(bo.Camp, bo.teamHero.positionNum), true);
+				bo.heroInfoBar.SetActive(true);
 			}
 			battleField.battleRootNode.skillMaskNode.SetActive(false);
 
+			
 
 
 			return true;

--
Gitblit v1.8.0