mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Fix
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = class Pokemon {
|
|||||||
this.legendary = data.is_legendary;
|
this.legendary = data.is_legendary;
|
||||||
this.mythical = data.is_mythical;
|
this.mythical = data.is_mythical;
|
||||||
this.baby = data.is_baby;
|
this.baby = data.is_baby;
|
||||||
this.heldItems = data.missingno ? data.heldItems : [];
|
this.heldItems = data.missingno ? data.held_items : [];
|
||||||
this.varieties = data.varieties.map(variety => {
|
this.varieties = data.varieties.map(variety => {
|
||||||
const name = firstUpperCase(variety.pokemon.name
|
const name = firstUpperCase(variety.pokemon.name
|
||||||
.replace(new RegExp(`${this.slug}-?`, 'i'), '')
|
.replace(new RegExp(`${this.slug}-?`, 'i'), '')
|
||||||
|
|||||||
Reference in New Issue
Block a user