pokemon-showdown/data/mods/optimons/moves.ts
Guangcong Luo 2f805c93a2
Remove "Battle" prefix from data exports (#7039)
`BattlePokedex` is now `Pokedex`, `BattleItems` is now `Items`, etc.

I also renamed `Movedex` to `Moves` and `Statuses` to `Conditions`.

`TypeChart` isn't `Types` yet, because unlike the others, it's not
indexed by ID. That should probably be fixed one day.
2020-07-24 12:42:26 -07:00

20 lines
691 B
TypeScript

export const Moves: {[k: string]: ModdedMoveData} = {
bonemerang: {
inherit: true,
beforeTurnCallback(pokemon, target) {
const stallMove = this.queue.willMove(target)?.move.volatileStatus === 'stall';
if (stallMove) {
// Do nothing
} else if (this.field.isTerrain('psychicterrain') && target.isGrounded() && !stallMove) {
this.add('-activate', target, 'move: Psychic Terrain');
} else if (target.hasAbility(['dazzling', 'queenlymajesty']) && !stallMove) {
this.add('cant', target, 'ability: Queenly Majesty', this.dex.getMove('bonemerang'), '[of] ' + pokemon);
} else {
this.useMove('bonemerang', pokemon);
}
},
multihit: 1,
priority: -6,
},
};