mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
20 lines
564 B
JavaScript
20 lines
564 B
JavaScript
exports.BattleScripts = {
|
|
gen: 4,
|
|
init: function() {
|
|
for (var i in this.data.Learnsets) {
|
|
this.modData('Learnsets', i);
|
|
var learnset = this.data.Learnsets[i].learnset;
|
|
for (var moveid in learnset) {
|
|
if (typeof learnset[moveid] === 'string') learnset[moveid] = [learnset[moveid]];
|
|
learnset[moveid] = learnset[moveid].filter(function(source) {
|
|
return source[0] !== '5';
|
|
});
|
|
if (!learnset[moveid].length) delete learnset[moveid];
|
|
}
|
|
}
|
|
for (var i in this.data.Pokedex) {
|
|
delete this.data.Pokedex[i].abilities['DW'];
|
|
}
|
|
}
|
|
}
|