Don't loop gc exchange an additonal time when buying

This commit is contained in:
Liza 2023-09-25 16:50:25 +02:00
parent 1abcda7089
commit 1633b4390a
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -177,7 +177,8 @@ partial class DeliverooPlugin
if (SelectSelectYesno(0, s => s.StartsWith("Exchange ")))
{
if (GetNextItemToPurchase(item) != null)
var nextItem = GetNextItemToPurchase(item);
if (nextItem != null && GetCurrentSealCount() >= _configuration.ReservedSealCount + nextItem.SealCost)
CurrentStage = Stage.SelectRewardTier;
else
CurrentStage = Stage.CloseGcExchange;