adds missing brackets to psycho shift attribute to fix unreachable condition

pull/306/head
shayebeadlingkl 2024-04-26 12:16:56 -04:00
parent 6603417e40
commit def36e32d1
1 changed files with 2 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ export class PsychoShiftEffectAttr extends MoveEffectAttr {
if (target.status) {
return false;
}
if (!target.status || (target.status.effect === statusToApply && move.chance < 0))
if (!target.status || (target.status.effect === statusToApply && move.chance < 0)){
var statusAfflictResult = target.trySetStatus(statusToApply, true);
if (statusAfflictResult) {
user.scene.queueMessage(getPokemonMessage(user, getStatusEffectHealText(user.status.effect)));
@ -1028,6 +1028,7 @@ export class PsychoShiftEffectAttr extends MoveEffectAttr {
user.updateInfo();
}
return statusAfflictResult;
}
return false;
}