Teambuilder: Fix LC support (#2123)

This commit is contained in:
Kris Johnson 2023-06-03 22:57:33 -06:00 committed by GitHub
parent 1286e9f15d
commit faf40776a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,9 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
if (!species.nfe || species.prevo || lcBanlist.isBannedSpecies(species)) {
tier = 'Illegal';
}
if (/^([OURNP]U|Uber|AG)$/g.test(tier)) tier = 'LC';
if (/^([OURNP]U(BL)?|Uber|AG)$/g.test(tier) && tier !== 'Illegal') {
tier = 'LC';
}
return tier;
}
if (isLetsGo) {