Pikachuun
the entire waruda machine
config/formats.js
mods/hawluchange/scripts.js
Code:
{
name: "Hawluchange",
section: "Other Metagames",
ruleset: ['Pokemon', 'Standard', 'Team Preview'],
banlist: ['Uber', 'Soul Dew', 'Gengarite', 'Kangaskhanite', 'Lucarionite'],
mod: "hawluchange",
onModifyMove: function (move, pokemon) {
if (move.id === 'flyingpress') {
move.type = pokemon.types[0];
if (pokemon.types[1]) {
move.onEffectiveness = function(typeMod, type, move) {
return typeMod + this.getEffectiveness(pokemon.types[1], type);
}
} else {
move.onEffectiveness = function(typeMod, type, move) {
return typeMod;
}
}
}
}
},
Code:
exports.BattleScripts = {
init: function () {
for (var i in this.data.Learnsets) {
this.modData('Learnsets', i).learnset.flyingpress = ['6L1'];
}
}
};