mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-11 21:38:42 -05:00
Fix boostFromItem message
This commit is contained in:
@@ -885,7 +885,8 @@ class BattleTextParser {
|
||||
if (amount && kwArgs.zeffect) {
|
||||
templateId += (kwArgs.multiple ? 'MultipleFromZEffect' : 'FromZEffect');
|
||||
} else if (amount && kwArgs.from?.startsWith('item:')) {
|
||||
templateId += 'FromItem';
|
||||
const template = this.template(templateId + 'FromItem', kwArgs.from);
|
||||
return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[STAT]', this.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]', this.stat(stat));
|
||||
|
||||
Reference in New Issue
Block a user