mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-12 03:12:18 +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();
|
const currentMoveset = pokemon.getMoveset();
|
||||||
|
|
||||||
// The game first checks if the Pokemon already has the move and ends the phase if it does.
|
// 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) {
|
if (hasMoveAlready) {
|
||||||
return this.end();
|
return this.end();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user