diff --git a/hwanyoung2/Source/hwanyoung2/HYShopAOE.cpp b/hwanyoung2/Source/hwanyoung2/HYShopAOE.cpp index 109296f5..3cd9686e 100644 --- a/hwanyoung2/Source/hwanyoung2/HYShopAOE.cpp +++ b/hwanyoung2/Source/hwanyoung2/HYShopAOE.cpp @@ -53,7 +53,7 @@ bool AHYShopAOE::RandomizeTradableItemSets(int CurrentHonbaekAmount) // Filtering match the case.(Item can be bought, ItemValue is less and equal than honbaek amount and over than 0) TArray FilteredItemData = ItemData.FilterByPredicate([CurrentHonbaekAmount](const FInventoryItem* ItemDataRow) { - return !ItemDataRow->OnlyDropped && ItemDataRow->ItemValue > 0 && ItemDataRow->ItemValue <= CurrentHonbaekAmount; + return !ItemDataRow->OnlyDropped && ItemDataRow->ItemValue > 0 && ItemDataRow->ItemValue <= CurrentHonbaekAmount && ItemDataRow->CanBeBought; }); int maxLoopNum = FMath::Min(5, FilteredItemData.Num());