diff --git a/src/pokemon.ts b/src/pokemon.ts index eabdb0e4b..8a4d97ec5 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -404,7 +404,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { setMove(moveIndex: integer, moveId: Moves): void { const move = moveId ? new PokemonMove(moveId) : null; - this.moveset[moveId] = move; + this.moveset[moveIndex] = move; if (this.summonData.moveset) this.summonData.moveset[moveIndex] = move; }