feat: Add conditional check for adding CONFUSED tag in FrenzyTag.onRemove

This commit is contained in:
3ae3ae 2024-07-03 12:30:37 +09:00
parent 67dde56c5d
commit 93d8082f24
1 changed files with 3 additions and 2 deletions

View File

@ -478,9 +478,10 @@ export class FrenzyTag extends BattlerTag {
onRemove(pokemon: Pokemon): void {
super.onRemove(pokemon);
if ([Moves.OUTRAGE, Moves.PETAL_DANCE, Moves.THRASH].includes(this.sourceMove)) {
pokemon.addTag(BattlerTagType.CONFUSED, pokemon.randSeedIntRange(2, 4));
}
}
}
export class ChargingTag extends BattlerTag {