added comment on stuff cheeks condition

pull/232/head
Luc 2024-05-08 20:47:11 -04:00
parent 476b8fd968
commit 9cea00ce90
1 changed files with 1 additions and 1 deletions

View File

@ -6069,7 +6069,7 @@ export function initMoves() {
.attr(StatChangeAttr, BattleStat.DEF, 2) .attr(StatChangeAttr, BattleStat.DEF, 2)
.attr(EatBerryAttr) .attr(EatBerryAttr)
.condition((user, target, move) => target.scene.findModifiers(m => m instanceof BerryModifier .condition((user, target, move) => target.scene.findModifiers(m => m instanceof BerryModifier
&& (m as BerryModifier).pokemonId === target.id, target.isPlayer()).length > 0 ) && (m as BerryModifier).pokemonId === target.id, target.isPlayer()).length > 0 ) // move fails if the target has no berries
.target(MoveTarget.USER), .target(MoveTarget.USER),
new SelfStatusMove(Moves.NO_RETREAT, Type.FIGHTING, -1, 5, 100, 0, 8) new SelfStatusMove(Moves.NO_RETREAT, Type.FIGHTING, -1, 5, 100, 0, 8)
.attr(StatChangeAttr, [ BattleStat.ATK, BattleStat.DEF, BattleStat.SPATK, BattleStat.SPDEF, BattleStat.SPD ], 1, true) .attr(StatChangeAttr, [ BattleStat.ATK, BattleStat.DEF, BattleStat.SPATK, BattleStat.SPDEF, BattleStat.SPD ], 1, true)