mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 12:36:41 -05:00
18 lines
384 B
JavaScript
18 lines
384 B
JavaScript
exports.BattleItems = {
|
|
leppaberry: {
|
|
inherit: true,
|
|
onUpdate: function (pokemon) {
|
|
var move = pokemon.getMoveData(pokemon.getLastMoveAbsolute());
|
|
if (move && move.pp === 0) {
|
|
pokemon.addVolatile('leppaberry');
|
|
pokemon.volatiles['leppaberry'].move = move;
|
|
pokemon.eatItem();
|
|
}
|
|
}
|
|
},
|
|
metronome: {
|
|
inherit: true
|
|
// Mod-specific: default mechanics
|
|
}
|
|
};
|