fix buycount combo bug

This commit is contained in:
Mashy 2019-11-21 11:36:06 +10:00
parent 7d0018c134
commit a5d778475e

View File

@ -93,7 +93,7 @@ function validVboxSelect(vbox, itemInfo, shopSelect, stashSelect) {
const valid = selectedItems.every(c => {
if (!combo.components.includes(c)) return false;
if (itemCount[c] > comboCount[c]) return false;
buyCount[c] -= itemCount[c];
buyCount[c] -= 1;
return true;
});
if (valid) {