diff --git a/src/phases.ts b/src/phases.ts index 5857b461fd5..2e0d62f40b7 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2021,7 +2021,7 @@ export class CommandPhase extends FieldPhase { // Decides between a Disabled, Not Implemented, or No PP translation message const errorMessage = playerPokemon.isMoveDisabled(move.moveId) - ? playerPokemon.getDisablingTag(move.moveId)?.selectionDeniedText(playerPokemon, move.moveId) + ? playerPokemon.getDisablingTag(move.moveId)!.selectionDeniedText(playerPokemon, move.moveId) : move.getName().endsWith(" (N)") ? "battle:moveNotImplemented" : "battle:moveNoPP"; const moveName = move.getName().replace(" (N)", ""); // Trims off the indicator