mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 09:29:25 +02:00
Minor Change
This commit is contained in:
parent
ac80209848
commit
968b4d410f
@ -54,7 +54,7 @@ export class PokemonMove {
|
|||||||
(ignorePp || this.ppUsed < this.getMovePp() || move.pp === -1) &&
|
(ignorePp || this.ppUsed < this.getMovePp() || move.pp === -1) &&
|
||||||
!(this.moveId && !ignoreRestrictionTags && pokemon.isMoveRestricted(this.moveId, pokemon)),
|
!(this.moveId && !ignoreRestrictionTags && pokemon.isMoveRestricted(this.moveId, pokemon)),
|
||||||
);
|
);
|
||||||
if (usability.value && pokemon.isPlayer()) {
|
if (pokemon.isPlayer()) {
|
||||||
applyChallenges(ChallengeType.POKEMON_MOVE, move.id, usability);
|
applyChallenges(ChallengeType.POKEMON_MOVE, move.id, usability);
|
||||||
}
|
}
|
||||||
return usability.value;
|
return usability.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user