feat: Add conditional check for adding CONFUSED tag in FrenzyTag.onRemove
This commit is contained in:
parent
67dde56c5d
commit
93d8082f24
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue