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/HeroTrainWin.cs |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 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()

--
Gitblit v1.8.0