From 08072936190ef81367ddc8175fa8fb9612828b53 Mon Sep 17 00:00:00 2001 From: urkerab Date: Fri, 30 Nov 2018 01:05:48 +0000 Subject: [PATCH] No message for use of Rest (#1184) --- src/battle-text-parser.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle-text-parser.ts b/src/battle-text-parser.ts index 27acb591b..a534aaacb 100644 --- a/src/battle-text-parser.ts +++ b/src/battle-text-parser.ts @@ -481,6 +481,10 @@ class BattleTextParser { case '-status': { const [, pokemon, status] = args; const line1 = this.maybeAbility(kwArgs.from, kwArgs.of || pokemon); + if (this.effectId(kwArgs.from) === 'rest') { + const template = this.template('startFromRest', status); + return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)); + } const template = this.template('start', status); return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)); }