mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 16:14:01 -05:00
Fix Gen 1 partial trapping message (#1178)
This commit is contained in:
parent
ddfb162b8a
commit
2494aca33b
|
|
@ -35,6 +35,7 @@ exports.BattleText = {
|
|||
// is that the `cant` message REPLACES "Pokemon used Move!", while the `fail`
|
||||
// message happens AFTER "Pokemon used Move!"
|
||||
cant: "[POKEMON] can't use [MOVE]!",
|
||||
cantNoMove: "[POKEMON] can't move!",
|
||||
fail: " But it failed!",
|
||||
|
||||
// n.b. this is the default message for in-battle forme changes
|
||||
|
|
|
|||
|
|
@ -327,7 +327,7 @@ class BattleTextParser {
|
|||
[pokemon, kwArgs.of] = [kwArgs.of, pokemon];
|
||||
break;
|
||||
}
|
||||
const template = this.template('cant', effect);
|
||||
const template = this.template(move ? 'cant' : 'cantNoMove', effect);
|
||||
const line1 = this.maybeAbility(effect, kwArgs.of || pokemon);
|
||||
return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[MOVE]', move);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user