mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-08 09:22:17 +02:00
Fix syntax mistake
This commit is contained in:
parent
63d244790f
commit
88d3054bf1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user