mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 23:11:11 +00:00
adds missing brackets to psycho shift attribute to fix unreachable condition
This commit is contained in:
parent
6603417e40
commit
def36e32d1
@ -1020,7 +1020,7 @@ export class PsychoShiftEffectAttr extends MoveEffectAttr {
|
|||||||
if (target.status) {
|
if (target.status) {
|
||||||
return false;
|
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);
|
var statusAfflictResult = target.trySetStatus(statusToApply, true);
|
||||||
if (statusAfflictResult) {
|
if (statusAfflictResult) {
|
||||||
user.scene.queueMessage(getPokemonMessage(user, getStatusEffectHealText(user.status.effect)));
|
user.scene.queueMessage(getPokemonMessage(user, getStatusEffectHealText(user.status.effect)));
|
||||||
@ -1028,6 +1028,7 @@ export class PsychoShiftEffectAttr extends MoveEffectAttr {
|
|||||||
user.updateInfo();
|
user.updateInfo();
|
||||||
}
|
}
|
||||||
return statusAfflictResult;
|
return statusAfflictResult;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user