[i18n] Fix message for unimplemented moves (#6780)

Fix message for unimplemented moves
This commit is contained in:
Fabi 2025-11-15 19:14:48 +01:00 committed by GitHub
parent 349b552eb1
commit bb86b649d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ export class PokemonMove {
// TODO: Add Sky Drop's 1 turn stall
if (this.moveId === MoveId.NONE || move.name.endsWith(" (N)")) {
return [false, i18next.t("battle:moveNotImplemented", moveName.replace(" (N)", ""))];
return [false, i18next.t("battle:moveNotImplemented", { moveName: moveName.replace(" (N)", "") })];
}
if (!ignorePp && move.pp !== -1 && this.ppUsed >= this.getMovePp()) {