Fix improperly named computeMoveId method

This commit is contained in:
Sirz Benjie 2025-05-26 20:40:48 -05:00
parent f678966149
commit f856262168
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138

View File

@ -229,7 +229,7 @@ export class CommandPhase extends FieldPhase {
*
* Does not check if the move is usable or not, that should be handled by the caller.
*/
private comptueMoveId(playerPokemon: PlayerPokemon, cursor: number, move?: TurnMove): MoveId {
private computeMoveId(playerPokemon: PlayerPokemon, cursor: number, move?: TurnMove): MoveId {
return move?.move ?? (cursor > -1 ? playerPokemon.getMoveset()[cursor]?.moveId : MoveId.NONE);
}
@ -262,7 +262,7 @@ export class CommandPhase extends FieldPhase {
return false;
}
const moveId = useStruggle ? MoveId.STRUGGLE : this.comptueMoveId(playerPokemon, cursor, move);
const moveId = useStruggle ? MoveId.STRUGGLE : this.computeMoveId(playerPokemon, cursor, move);
const turnCommand: TurnCommand = {
command: Command.FIGHT,