Merge pull request #306 from shayebeadling/psycho-shift-warning-fix
Psycho Shift Unreachable Code Warning Fix
This commit is contained in:
commit
2f10f6789c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue