mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 13:33:01 +02:00
Restore {}
in turn-start-phase.ts
Fixes `lint/correctness/noSwitchDeclarations`
This commit is contained in:
parent
95d75b5107
commit
05e0779e08
@ -159,7 +159,7 @@ export class TurnStartPhase extends FieldPhase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (turnCommand?.command) {
|
switch (turnCommand?.command) {
|
||||||
case Command.FIGHT:
|
case Command.FIGHT: {
|
||||||
const queuedMove = turnCommand.move;
|
const queuedMove = turnCommand.move;
|
||||||
pokemon.turnData.order = orderIndex++;
|
pokemon.turnData.order = orderIndex++;
|
||||||
if (!queuedMove) {
|
if (!queuedMove) {
|
||||||
@ -190,6 +190,7 @@ export class TurnStartPhase extends FieldPhase {
|
|||||||
); // TODO: is the bang correct here?
|
); // TODO: is the bang correct here?
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case Command.BALL:
|
case Command.BALL:
|
||||||
phaseManager.unshiftNew("AttemptCapturePhase", turnCommand.targets![0] % 2, turnCommand.cursor!); //TODO: is the bang correct here?
|
phaseManager.unshiftNew("AttemptCapturePhase", turnCommand.targets![0] % 2, turnCommand.cursor!); //TODO: is the bang correct here?
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user