From 5825214a6017396705a4f8b7d8071f689819773f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 02 二月 2026 21:23:32 +0800
Subject: [PATCH] 0312 武将支持批量吞噬

---
 Main/System/HeroUI/HeroGiftEatSuccessWin.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Main/System/HeroUI/HeroGiftEatSuccessWin.cs b/Main/System/HeroUI/HeroGiftEatSuccessWin.cs
index e6df721..54ff34b 100644
--- a/Main/System/HeroUI/HeroGiftEatSuccessWin.cs
+++ b/Main/System/HeroUI/HeroGiftEatSuccessWin.cs
@@ -32,10 +32,15 @@
 
     protected override void OnPreOpen()
     {
+        HeroUIManager.Instance.selectEatHeroIndexList.Clear();
         if (string.IsNullOrEmpty(HeroUIManager.Instance.selectHeroGuidForGiftFuncForSuccessWin))
             return;
         Display();
-        HeroUIManager.Instance.selectEatHeroGuid = "";
+    }
+
+    protected override void OnPreClose()
+    {
+        HeroUIManager.Instance.waitResponse = default;
     }
 
 
@@ -45,7 +50,7 @@
         if (hero == null)
             return;
 
-        int beforeStarCount = hero.heroStar - 1;
+        int beforeStarCount = HeroUIManager.Instance.eatBeforeStar;
         int afterStarCount = hero.heroStar;
 
         HeroUIManager.Instance.ShowStarImg(beforeStarCount, beforeStars);
@@ -59,7 +64,7 @@
             int id = PlayerPropertyConfig.basePerAttrs[i];
             attrPerNameArr[i].text = PlayerPropertyConfig.Get(id).Name;
             nextAttrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer);
-            attrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer - hero.qualityConfig.StarAddPer);
+            attrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer - hero.qualityConfig.StarAddPer*(afterStarCount - beforeStarCount));
         }
 
         //澶╄祴

--
Gitblit v1.8.0