From e224c6e8adb5f7be1b48a8879800207952d94911 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 03 二月 2026 14:30:07 +0800
Subject: [PATCH] 0312 武将吞噬只选一只且超过总星数的情况,允许选择
---
Main/System/HeroUI/HeroGiftRoleListCell.cs | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Main/System/HeroUI/HeroGiftRoleListCell.cs b/Main/System/HeroUI/HeroGiftRoleListCell.cs
index defb77a..4fb3db7 100644
--- a/Main/System/HeroUI/HeroGiftRoleListCell.cs
+++ b/Main/System/HeroUI/HeroGiftRoleListCell.cs
@@ -111,10 +111,15 @@
// 涓绘灏嗘槦绾�
var star = HeroManager.Instance.GetHero(HeroUIManager.Instance.selectHeroGuidForGiftFunc)?.heroStar;
- if (eatStar + selectStar + star > maxStarCnt)
+
+ // 鍙��1鍙殑鎯呭喌涓嬶紝濡傛灉 39鏄� + 5鏄熻秴杩囦簡涔熻鍙�夛紝鍏朵粬鎯呭喌鐨勮瘽闇�鍒ゆ柇鏄熶笂闄�
+ if (!(HeroUIManager.Instance.selectEatHeroIndexList.Count == 0 && selectStar > 1))
{
- SysNotifyMgr.Instance.ShowTip("HeroGiftEat1");
- return;
+ if (eatStar + selectStar + star > maxStarCnt)
+ {
+ SysNotifyMgr.Instance.ShowTip("HeroGiftEat1");
+ return;
+ }
}
if (!HeroUIManager.Instance.selectEatHeroIndexList.Contains(girdIndex))
--
Gitblit v1.8.0