Fix typo in move setting logic
parent
c88828548c
commit
fda8e6055a
|
@ -404,7 +404,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
|
|
||||||
setMove(moveIndex: integer, moveId: Moves): void {
|
setMove(moveIndex: integer, moveId: Moves): void {
|
||||||
const move = moveId ? new PokemonMove(moveId) : null;
|
const move = moveId ? new PokemonMove(moveId) : null;
|
||||||
this.moveset[moveId] = move;
|
this.moveset[moveIndex] = move;
|
||||||
if (this.summonData.moveset)
|
if (this.summonData.moveset)
|
||||||
this.summonData.moveset[moveIndex] = move;
|
this.summonData.moveset[moveIndex] = move;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue