Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* mods/linked/items.js */
- 'use strict';
- exports.BattleItems = {
- leppaberry: {
- inherit: true,
- onUpdate: function (pokemon) {
- const 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
- },
- };
Add Comment
Please, Sign In to add comment