From 0b28b94dcbe0ac32d0b2ceacbc5cc313caaa3d3a Mon Sep 17 00:00:00 2001 From: Sipanale Date: Fri, 23 Dec 2016 10:59:53 -0500 Subject: [PATCH] Giveaway: Fix Alolan Form GIF Display (#3045) Changes made to cause proper parsing for Alolan forms, allowing for the giveaway to render the gif for the target form by using 'Pokemon-Alolan' as well as 'Pokemon Alolan' --- chat-plugins/wifi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat-plugins/wifi.js b/chat-plugins/wifi.js index 5668c6de23..6640b1c803 100644 --- a/chat-plugins/wifi.js +++ b/chat-plugins/wifi.js @@ -119,8 +119,8 @@ class Giveaway { } if (value.otherFormes) { for (let i = 0; i < value.otherFormes.length; i++) { - // Hardcore alola formes. - if (value.otherFormes[i].endsWith('alola')) { + // Hardcore Alolan formes. + if (value.otherFormes[i].endsWith('alolan')) { if (/alolan?/.test(text)) { spriteid += '-alolan'; break;