fix(pets): disallow hatching quest pets with Wacky potions

This commit is contained in:
Sabe Jones
2019-04-09 16:25:49 -05:00
parent 060e68ef95
commit 6b933914ef
2 changed files with 17 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ module.exports = function hatch (user, req = {}) {
throw new NotFound(i18n.t('messageMissingEggPotion', req.language));
}
if (content.hatchingPotions[hatchingPotion].premium && !content.dropEggs[egg]) {
if ((content.hatchingPotions[hatchingPotion].premium || content.hatchingPotions[hatchingPotion].wacky) && !content.dropEggs[egg]) {
throw new BadRequest(i18n.t('messageInvalidEggPotionCombo', req.language));
}