mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-08 17:32:18 +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
|
// Decides between a Disabled, Not Implemented, or No PP translation message
|
||||||
const errorMessage =
|
const errorMessage =
|
||||||
playerPokemon.isMoveDisabled(move.moveId)
|
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";
|
: move.getName().endsWith(" (N)") ? "battle:moveNotImplemented" : "battle:moveNoPP";
|
||||||
const moveName = move.getName().replace(" (N)", ""); // Trims off the indicator
|
const moveName = move.getName().replace(" (N)", ""); // Trims off the indicator
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user