[Bug] Enemies can properly use stuff cheeks (#3090)

This commit is contained in:
schmidtc1 2024-07-22 12:01:59 -04:00 committed by GitHub
parent 21940e6426
commit fc722bea7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7945,7 +7945,7 @@ export function initMoves() {
.attr(EatBerryAttr)
.attr(StatChangeAttr, BattleStat.DEF, 2, true)
.condition((user) => {
const userBerries = user.scene.findModifiers(m => m instanceof BerryModifier);
const userBerries = user.scene.findModifiers(m => m instanceof BerryModifier, user.isPlayer());
return userBerries.length > 0;
})
.partial(),