This commit is contained in:
Dragon Fire
2020-12-10 09:40:34 -05:00
parent 6a54fa3dc1
commit e3d34b9992
+1
View File
@@ -213,6 +213,7 @@ module.exports = class Pokemon {
this.encounters = body;
return body;
}
this.encounters = [];
for (const encounter of body) {
if (!encounter.version_details.some(version => versions[version.version.name])) continue;
const { body: encounterBody } = await request.get(encounter.location_area.url);