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) {
|
||||
case Command.FIGHT:
|
||||
case Command.FIGHT: {
|
||||
const queuedMove = turnCommand.move;
|
||||
pokemon.turnData.order = orderIndex++;
|
||||
if (!queuedMove) {
|
||||
@ -190,6 +190,7 @@ export class TurnStartPhase extends FieldPhase {
|
||||
); // TODO: is the bang correct here?
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Command.BALL:
|
||||
phaseManager.unshiftNew("AttemptCapturePhase", turnCommand.targets![0] % 2, turnCommand.cursor!); //TODO: is the bang correct here?
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user