mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user