mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-25 17:33:04 -05:00
17 lines
488 B
JavaScript
17 lines
488 B
JavaScript
exports.BattleScripts = {
|
|
inherit: 'gen5',
|
|
gen: 3,
|
|
init: function() {
|
|
for (var i in this.data.Pokedex) {
|
|
delete this.data.Pokedex[i].abilities['H'];
|
|
}
|
|
},
|
|
getCategory: function(move) {
|
|
move = this.getMove(move);
|
|
if (!(move.category in {'Special':1,'Physical':1})) return move.category;
|
|
// overwrite categories
|
|
var specialTypes = {Fire:1, Water:1, Grass:1, Ice:1, Electric:1, Dark:1, Psychic:1, Dragon:1};
|
|
return specialTypes[move.type]? 'Special' : 'Physical';
|
|
}
|
|
};
|