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'
This commit is contained in:
Sipanale 2016-12-23 10:59:53 -05:00 committed by Bär Halberkamp
parent 670a499c2b
commit 0b28b94dcb

View File

@ -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;