mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 23:12:20 +02:00
#3722 fix so that testing works correctly
This commit is contained in:
commit
5c543367aa
@ -1950,8 +1950,11 @@ export class StatusEffectAttr extends MoveEffectAttr {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!pokemon.status || (pokemon.status.effect === this.effect && moveChance < 0)) {
|
||||
pokemon.canSetStatus(this.effect, false, false, user);
|
||||
}
|
||||
if ((!pokemon.status || (pokemon.status.effect === this.effect && moveChance < 0))
|
||||
&& pokemon.trySetStatus(this.effect, false, user, this.cureTurn)) {
|
||||
&& pokemon.trySetStatus(this.effect, true, user, this.cureTurn)) {
|
||||
applyPostAttackAbAttrs(ConfusionOnStatusEffectAbAttr, user, target, move, null, false, this.effect);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user