pokemon-showdown/mods/gen3/scripts.js
2013-04-27 11:21:25 -07:00

16 lines
443 B
JavaScript

exports.BattleScripts = {
gen: 3,
init: function() {
for (var i in this.data.Pokedex) {
delete this.data.Pokedex[i].abilities['DW'];
}
},
getCategory: function(move) {
move = this.getMove(move);
// overwrite categories
var specialTypes = {Fire:1, Water:1, Grass:1, Ice:1, Electric:1, Dark:1, Psychic:1, Dragon:1};
if (move.category === 'Status') return 'Status';
return specialTypes[move.type]?'Special':'Physical';
}
};