Skip to content

Commit

Permalink
support ability boost text
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 committed Sep 16, 2023
1 parent 364f8c7 commit 6c0cd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle-text-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ class BattleTextParser {
return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[STAT]', BattleTextParser.stat(stat)).replace('[ITEM]', this.effect(kwArgs.from));
}
const template = this.template(templateId, kwArgs.from);
return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[STAT]', BattleTextParser.stat(stat));
return line1 + template.replace(/\[POKEMON\]/g, this.pokemon(pokemon)).replace('[STAT]', BattleTextParser.stat(stat));
}

case '-setboost': {
Expand Down

0 comments on commit 6c0cd35

Please sign in to comment.