From 738a7d4e14fda1f94035648152f1091ce1f2fc5a Mon Sep 17 00:00:00 2001 From: Kei-Luna Date: Fri, 15 May 2026 16:17:36 +0900 Subject: [PATCH] Improved the system so that affixes are correctly applied when obtaining support cards using the give command. --- GameServer/Game/Inventory/InventoryManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GameServer/Game/Inventory/InventoryManager.cs b/GameServer/Game/Inventory/InventoryManager.cs index 1c0bbd6..8a45455 100644 --- a/GameServer/Game/Inventory/InventoryManager.cs +++ b/GameServer/Game/Inventory/InventoryManager.cs @@ -139,10 +139,11 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player) AffixId = 1, }; - var initialCount = spCard.InitialAffixCount; - for (int i = 0; i < initialCount && i < spCard.AffixPool.Count; i++) + var affixCount = cardLevel >= spCard.MaxLevel ? spCard.TotalAffixCount : spCard.InitialAffixCount; + for (int i = 0; i < affixCount && i < spCard.AffixPool.Count; i++) { var (affixId, tier) = SupportAffixService.GenerateRandomAffix(spCard.AffixPool[i]); + if (affixId == 0) continue; info.Affixs.Add(affixId); info.Affixs.Add(tier); }