Fix improperly named computeMoveId method

This commit is contained in:
Sirz Benjie 2025-05-26 20:40:48 -05:00
parent 9218d35938
commit adb5900497
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -230,7 +230,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);
}
@ -263,7 +263,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,