mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-19 05:31:16 -05:00
`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.
20 lines
691 B
TypeScript
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,
|
|
},
|
|
};
|