From 6840eac68f562cbc36fc5735226df4185d0a249f Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 29 Nov 2018 19:45:28 -0500 Subject: [PATCH] Fix cantNoMove in text parser Fixes #1183 --- 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 9e7107024..27acb591b 100644 --- a/src/battle-text-parser.ts +++ b/src/battle-text-parser.ts @@ -327,7 +327,8 @@ class BattleTextParser { [pokemon, kwArgs.of] = [kwArgs.of, pokemon]; break; } - const template = this.template(move ? 'cant' : 'cantNoMove', effect); + const template = this.template('cant', effect, 'NODEFAULT') || + this.template(move ? 'cant' : 'cantNoMove'); const line1 = this.maybeAbility(effect, kwArgs.of || pokemon); return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[MOVE]', move); }