mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = class Pokemon {
|
||||
};
|
||||
for (const move of defaultBody.moves) {
|
||||
if (!move.version_group_details.some(mve => mve.move_learn_method.name === 'level-up')) continue;
|
||||
const { body: moveBody } = await request.get(move.url);
|
||||
const { body: moveBody } = await request.get(move.move.url);
|
||||
this.moveSet.push({
|
||||
name: moveBody.names.find(name => name.language.name === 'en').name,
|
||||
level: move.version_group_details[move.version_group_details.length - 1].level_learned_at
|
||||
|
||||
Reference in New Issue
Block a user