From fda8e6055a365976c73a584aced406f03faa3689 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 6 May 2023 17:31:45 -0400 Subject: [PATCH] Fix typo in move setting logic --- src/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }