Fix Stat Booster Held Items Applying to Party (#2637)

This commit is contained in:
Amani H 2024-06-26 22:17:22 -04:00 committed by GitHub
parent 8933a9bb05
commit 0e994a7072
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -753,7 +753,7 @@ export class StatBoosterModifier extends PokemonHeldItemModifier {
* @returns true if the stat could be boosted, false otherwise * @returns true if the stat could be boosted, false otherwise
*/ */
shouldApply(args: any[]): boolean { shouldApply(args: any[]): boolean {
return this.stats.includes(args[1] as Stat); return super.shouldApply(args) && this.stats.includes(args[1] as Stat);
} }
/** /**