fix purchasing wacky potions (#15276)

This commit is contained in:
Phillip Thelen
2024-07-24 17:35:26 +02:00
committed by GitHub
parent 6e91d51def
commit 22def5111f
2 changed files with 12 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ export default async function purchase (user, req = {}, analytics) {
const { price, item } = getItemAndPrice(user, type, key, req);
if (type === 'hatchingPotions' && item.premium === true && item.questPotion !== true) {
if (type === 'hatchingPotions' && (item.premium === true || item.wacky === true) && item.questPotion !== true) {
const matchers = getScheduleMatchingGroup('premiumHatchingPotions');
if (!matchers.match(item.key)) {
throw new NotAuthorized(i18n.t('messageNotAvailable', req.language));