mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-07 00:35:29 -05:00
Update learnset checker
This commit is contained in:
@@ -729,9 +729,6 @@ exports.BattleFormats = {
|
||||
if (!template.nfe) {
|
||||
return [set.species+" doesn't have an evolution family."];
|
||||
}
|
||||
if (set.ability === template.abilities['DW'] && template.dreamWorldRelease && (template.maleOnlyDreamWorld || template.gender === 'N')) {
|
||||
return [set.species+" must be at least level 10 with its DW ability."];
|
||||
}
|
||||
if (!set.level || set.level > 5) {
|
||||
set.level = 5;
|
||||
}
|
||||
|
||||
5
tools.js
5
tools.js
@@ -738,7 +738,10 @@ module.exports = (function () {
|
||||
|
||||
if (!template.dreamWorldRelease && banlistTable['Unreleased']) {
|
||||
problems.push(name+"'s Dream World ability is unreleased.");
|
||||
} else if (template.maleOnlyDreamWorld) {
|
||||
} else if (set.level < 10 && (template.maleOnlyDreamWorld || template.gender === 'N')) {
|
||||
problems.push(name+" must be at least level 10 with its DW ability.");
|
||||
}
|
||||
if (template.maleOnlyDreamWorld) {
|
||||
set.gender = 'M';
|
||||
lsetData.sources = ['5D'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user