Fix max level evaluation in EnhanceActiveSkill method

This commit is contained in:
Ilya Groshev
2026-04-16 16:58:39 +03:00
parent ef8a241a0a
commit 409f1f8a11
+1 -1
View File
@@ -289,7 +289,7 @@ func (s *CostumeServiceServer) EnhanceActiveSkill(ctx context.Context, req *pb.E
log.Printf("[CostumeService] EnhanceActiveSkill: no max level func for rarity=%d", cm.RarityType) log.Printf("[CostumeService] EnhanceActiveSkill: no max level func for rarity=%d", cm.RarityType)
return return
} }
maxLevel := maxLevelFunc.Evaluate(0) maxLevel := maxLevelFunc.Evaluate(1)
addCount := req.AddLevelCount addCount := req.AddLevelCount
if currentLevel+addCount > maxLevel { if currentLevel+addCount > maxLevel {