mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
Fix Pokemon name when trapped (#793)
This commit is contained in:
committed by
Guangcong Luo
parent
834327825b
commit
84e69bf1e8
@@ -163,7 +163,8 @@
|
||||
switch (args[0]) {
|
||||
case 'trapped':
|
||||
requestData.trapped = true;
|
||||
this.battle.activityQueue.push('|message|' + pokemon.getName() + ' is trapped and cannot switch!');
|
||||
var pokeName = pokemon.side.n === 0 ? Tools.escapeHTML(pokemon.name) : "The opposing " + (this.battle.ignoreOpponent || this.battle.ignoreNicks ? pokemon.species : Tools.escapeHTML(pokemon.name));
|
||||
this.battle.activityQueue.push('|message|' + pokeName + ' is trapped and cannot switch!');
|
||||
break;
|
||||
case 'cant':
|
||||
for (var i = 0; i < requestData.moves.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user