From fea39e7c9be3a7fcc54eb40df9fd6580f95a81fb Mon Sep 17 00:00:00 2001 From: Ilenia Date: Thu, 29 Apr 2021 21:18:13 +0200 Subject: [PATCH] =?UTF-8?q?over-purchase=20warning=20for=20Gryphon=20eggs?= =?UTF-8?q?=20now=20ignore=20Royal=20Purple=20pets=20a=E2=80=A6=20(#13121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * over-purchase warning for Gryphon eggs now ignore Royal Purple pets and mounts * fixed casing with potion name --- website/client/src/components/shops/buyModal.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index e591f58fd4..1af3ebde0d 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -539,6 +539,7 @@ export default { const ownedPets = reduce(this.user.items.pets, (sum, petValue, petKey) => { if (petKey.includes(this.item.key) && petValue > 0 && !petKey.includes('JackOLantern') // Jack-O-Lantern has "Ghost" version + && !petKey.includes('RoyalPurple') // to avoid counting Royal Purple Gryphons for gryphon eggs ) return sum + 1; return sum; }, 0); @@ -546,6 +547,7 @@ export default { const ownedMounts = reduce(this.user.items.mounts, (sum, mountValue, mountKey) => { if (mountKey.includes(this.item.key) && mountValue === true && !mountKey.includes('JackOLantern') + && !mountKey.includes('RoyalPurple') ) return sum + 1; return sum; }, 0);