diff --git a/js/battle.js b/js/battle.js index 5807232b0..314bd0cbd 100644 --- a/js/battle.js +++ b/js/battle.js @@ -520,14 +520,14 @@ var Pokemon = (function () { if (this.side.n === 0) { return Tools.escapeHTML(this.name); } else { - return "The opposing " + Tools.escapeHTML(this.name); + return "The opposing " + (this.side.battle.ignoreOpponent ? this.species : Tools.escapeHTML(this.name)); } }; Pokemon.prototype.getLowerName = function () { if (this.side.n === 0) { return Tools.escapeHTML(this.name); } else { - return "the opposing " + Tools.escapeHTML(this.name); + return "the opposing " + (this.side.battle.ignoreOpponent ? this.species : Tools.escapeHTML(this.name)); } }; Pokemon.prototype.getTitle = function () { @@ -540,8 +540,8 @@ var Pokemon = (function () { return titlestring; }; Pokemon.prototype.getFullName = function (plaintext) { - var name = Tools.escapeHTML(this.name); - if (this.name !== this.species) { + var name = this.side.n && this.side.battle.ignoreOpponent ? this.species : Tools.escapeHTML(this.name); + if (name !== this.species) { if (plaintext) { name += ' (' + this.species + ')'; } else { @@ -1550,7 +1550,7 @@ var Side = (function () { var gender = ''; if (pokemon.gender === 'F') gender = ' ♀'; if (pokemon.gender === 'M') gender = ' ♂'; - return '