From ed63aa36ced400b4eef79862e85498213ae40c4a Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 19 十二月 2025 16:43:55 +0800
Subject: [PATCH] 0312 满星蓝卡提醒可遣散

---
 Main/System/HeroUI/HeroUIManager.Reborn.cs |   22 +++++++++++++++++++---
 Main/System/HeroUI/HeroTrainWin.cs         |   32 +++++++++++++++-----------------
 2 files changed, 34 insertions(+), 20 deletions(-)

diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index 5ec3898..05880ba 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -30,6 +30,7 @@
     [SerializeField] HeroConnectionCell connetionForm;  //缇佺粖
     [SerializeField] Button resetBtn;
     [SerializeField] Button deleteBtn;
+    [SerializeField] Transform deleteTip;
     [SerializeField] Button seeLhBtn;   //鏌ョ湅绔嬬粯
     [SerializeField] SkillBaseCell normalSkillCell;
     [SerializeField] SkillBaseCell angerSkillCell;
@@ -295,11 +296,23 @@
         RefreshFreeze();
         RefreshRedImg();
         DisplayTrainOrBreak(hero);
-
+        ShowDeleteTip();
 
         HeroUIManager.Instance.RemoveNewHero(hero.heroId);
         ForceRefreshLayout();
     }
+
+
+    void ShowDeleteTip()
+    {
+        deleteTip.SetActive(false);
+        if (hero != null && hero.Quality == 1 && HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId))
+        {
+            
+            deleteTip.SetActive(true);
+        }
+    }
+
 
     /// <summary>
     /// 寮哄埗鍒锋柊Layout锛岃В鍐冲祵濂桳ayout鍜孋ontentSizeFitter鐨勯噸鍙犻棶棰�
@@ -409,23 +422,8 @@
     {
         if (hero.isAttrActive)
             return false;
-        
-        bool isFullStar = false;
 
-        var _list = HeroManager.Instance.GetHeroListByID(hero.heroId);
-        foreach (var heroInfo in _list)
-        {
-            if (heroInfo.heroStar < heroInfo.GetCurMaxStar())
-            {
-                continue;
-            }
-            //鐩稿悓姝﹀皢涓凡缁忔湁婊℃槦鐨�
-            isFullStar = true;
-            break;
-
-        }
-
-        return isFullStar;
+        return HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId);
     }
 
     void RefreshStars()
diff --git a/Main/System/HeroUI/HeroUIManager.Reborn.cs b/Main/System/HeroUI/HeroUIManager.Reborn.cs
index f8136fb..603c14b 100644
--- a/Main/System/HeroUI/HeroUIManager.Reborn.cs
+++ b/Main/System/HeroUI/HeroUIManager.Reborn.cs
@@ -266,7 +266,7 @@
         //鍏堣绠楁湁娌℃秷鑰�
         rebornParam.Add("heroLV", hero.heroLevel);
         int costCnt = (int)JaceCalculator.Calculate(rebornFormula, rebornParam);
-        
+
         //閲嶇敓绛夌骇閲嶇疆鐨勬秷鑰楋紝鍙傛暟 heroLV姝﹀皢绛夌骇锛屾渶缁堟秷鑰椾负鍏紡+瑙夐啋娑堣��
         if (hero.awakeLevel == 0)
         {
@@ -289,7 +289,7 @@
                         //鍙戝寘
                         SendReborn(hero);
                     }
-                }, itemName:$"( {rebornPayBackPer}% )");
+                }, itemName: $"( {rebornPayBackPer}% )");
             }
             else
             {
@@ -375,7 +375,7 @@
         }
 
         if (hero.IsInAnyTeamJustOne())
-        { 
+        {
             //闃靛鑷冲皯瑕佹湁涓�涓灏嗕笂闃�
             SysNotifyMgr.Instance.ShowTip("HeroFunc3");
             return false;
@@ -418,5 +418,21 @@
         return true;
     }
 
+    // 鍚孖D姝﹀皢涓湁娌℃弧鏄�
+    public bool IsTheSameHeroFullStar(int heroID)
+    {
+        var _list = HeroManager.Instance.GetHeroListByID(heroID);
+        foreach (var heroInfo in _list)
+        {
+            if (heroInfo.heroStar < heroInfo.GetCurMaxStar())
+            {
+                continue;
+            }
+            //鐩稿悓姝﹀皢涓凡缁忔湁婊℃槦鐨�
+            return true;
+
+        }
+        return false;
+    }
 }
 

--
Gitblit v1.8.0