pokemon-showdown/mods/gen4/scripts.js
2012-06-16 15:50:34 -07:00

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;
}
}
}