mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-20 05:58:08 -05:00
21 lines
606 B
JavaScript
21 lines
606 B
JavaScript
'use strict';
|
|
|
|
exports.BattleScripts = {
|
|
inherit: 'gen5',
|
|
gen: 3,
|
|
init: function () {
|
|
for (let i in this.data.Pokedex) {
|
|
delete this.data.Pokedex[i].abilities['H'];
|
|
}
|
|
let specialTypes = {Fire:1, Water:1, Grass:1, Ice:1, Electric:1, Dark:1, Psychic:1, Dragon:1};
|
|
let newCategory = '';
|
|
for (let i in this.data.Movedex) {
|
|
if (this.data.Movedex[i].category === 'Status') continue;
|
|
newCategory = specialTypes[this.data.Movedex[i].type] ? 'Special' : 'Physical';
|
|
if (newCategory !== this.data.Movedex[i].category) {
|
|
this.modData('Movedex', i).category = newCategory;
|
|
}
|
|
}
|
|
},
|
|
};
|