mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 12:36:41 -05:00
22 lines
595 B
JavaScript
22 lines
595 B
JavaScript
exports.BattleScripts = {
|
|
init: function() {
|
|
for (var i in this.data.Pokedex) {
|
|
var template = this.getTemplate(i);
|
|
if (template.gen > 4) template.isNonstandard = true;
|
|
delete template.abilities['DW'];
|
|
}
|
|
for (var i in this.data.Movedex) {
|
|
var move = this.getMove(i);
|
|
if (move.gen > 4) move.isNonstandard = true;
|
|
}
|
|
for (var i in this.data.Abilities) {
|
|
var ability = this.getAbility(i);
|
|
if (ability.gen > 4) ability.isNonstandard = true;
|
|
}
|
|
for (var i in this.data.Items) {
|
|
var item = this.getItem(i);
|
|
if (item.gen > 4) item.isNonstandard = true;
|
|
}
|
|
}
|
|
}
|