This commit is contained in:
Jesse Chung 2024-08-26 17:17:43 -07:00 committed by new name
parent 50c12f50f3
commit 9f9d2dc71c

View File

@ -1961,8 +1961,8 @@ export class StatusEffectAttr extends MoveEffectAttr {
return false;
}
if ((!pokemon.status || (pokemon.status.effect === this.effect && moveChance < 0))
&& pokemon.checkIfCanSetStatus(this.effect, false, false, user) && pokemon.trySetStatus(this.effect, true, user, this.cureTurn)) {
applyPostAttackAbAttrs(ConfusionOnStatusEffectAbAttr, user, target, move, null, false, this.effect);
&& pokemon.trySetStatus(this.effect, false, user, this.cureTurn)) {
applyPostAttackAbAttrs(ConfusionOnStatusEffectAbAttr, user, target, move, null, this.effect);
return true;
}
}