mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-30 12:12:28 +02:00
changed condition so it works for doubles too
This commit is contained in:
parent
5428d56572
commit
97b7e9d9bf
@ -7772,7 +7772,7 @@ export class StuffCheeksCondition extends MoveSelectCondition {
|
||||
* @returns true if the user is holding a berry, otherwise false
|
||||
*/
|
||||
private selectableCondition(user: Pokemon): boolean {
|
||||
return user.scene.findModifiers(m => m instanceof BerryModifier, user.isPlayer()).length > 0;
|
||||
return user?.getHeldItems()?.filter(m => m instanceof BerryModifier, user.isPlayer())?.length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user