mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Fix improperly named computeMoveId method
This commit is contained in:
parent
f678966149
commit
f856262168
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user