mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 19:02:16 +02:00
Added Sketch to the conditional
This commit is contained in:
parent
fe032bcf71
commit
865dcb5a0b
@ -30,7 +30,7 @@ export class LearnMovePhase extends PlayerPartyMemberPokemonPhase {
|
||||
const currentMoveset = pokemon.getMoveset();
|
||||
|
||||
// The game first checks if the Pokemon already has the move and ends the phase if it does.
|
||||
const hasMoveAlready = currentMoveset.some(m => m?.moveId === move.id);
|
||||
const hasMoveAlready = currentMoveset.some(m => m?.moveId === move.id) && this.moveId !== Moves.SKETCH;
|
||||
if (hasMoveAlready) {
|
||||
return this.end();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user