[Bug] Enemies can properly use stuff cheeks (#3090)
This commit is contained in:
parent
21940e6426
commit
fc722bea7f
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue