From dcd98ec0b6d68db9c674051cabf970c7e1254d54 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sun, 26 Jan 2020 15:50:56 -0800 Subject: [PATCH] Fix boostFromItem message --- src/battle-text-parser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle-text-parser.ts b/src/battle-text-parser.ts index 3779c3744..b747a54d0 100644 --- a/src/battle-text-parser.ts +++ b/src/battle-text-parser.ts @@ -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));