No message for use of Rest (#1184)

This commit is contained in:
urkerab
2018-11-30 01:05:48 +00:00
committed by Guangcong Luo
parent 6840eac68f
commit 0807293619

View File

@@ -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));
}