mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -112,7 +112,8 @@ module.exports = class Pokemon {
|
||||
spd: defaultBody.stats.find(stat => stat.stat.name === 'speed').base_stat
|
||||
};
|
||||
for (const move of defaultBody.moves) {
|
||||
const versionGroup = move.version_group_details.find(version => version.name === this.moveSetVersion);
|
||||
const versionGroup = move.version_group_details
|
||||
.find(version => version.version_group.name === this.moveSetVersion);
|
||||
if (!versionGroup.level_learned_at) continue;
|
||||
const { body: moveBody } = await request.get(move.move.url);
|
||||
this.moveSet.push({
|
||||
|
||||
Reference in New Issue
Block a user