Update src/data/move.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
geeilhan 2025-01-05 14:07:38 +01:00 committed by GitHub
parent 6422cc07e7
commit bb4fac36dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7808,7 +7808,7 @@ export class StuffCheeksCondition extends MoveSelectCondition {
} }
} }
const hasBerryCondition: MoveConditionFunc = (user: Pokemon, target: Pokemon, move: Move) => user.getHeldItems().filter(m => m instanceof BerryModifier, user.isPlayer()).length > 0; const hasBerryCondition: MoveConditionFunc = (user: Pokemon, target: Pokemon, move: Move) => user.getHeldItems().filter(m => m instanceof BerryModifier).length > 0;
export class MoveCondition { export class MoveCondition {
protected func: MoveConditionFunc; protected func: MoveConditionFunc;