mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 08:16:16 -05:00
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:
parent
670a499c2b
commit
0b28b94dcb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user