mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Remove trailing whitespace
This commit is contained in:
parent
87b94e7284
commit
19dfae0f61
|
|
@ -194,7 +194,7 @@ var Pokemon = (function () {
|
|||
this.name = '';
|
||||
this.species = '';
|
||||
this.id = '';
|
||||
this.statbarElem = null;
|
||||
this.statbarElem = null;
|
||||
}
|
||||
|
||||
Pokemon.prototype.getHPColor = function () {
|
||||
|
|
@ -371,7 +371,7 @@ var Pokemon = (function () {
|
|||
};
|
||||
Pokemon.prototype.getIdent = function () {
|
||||
var slots = ['a','b','c','d','e','f'];
|
||||
return this.ident.substr(0,2) + slots[this.slot] + this.ident.substr(2);
|
||||
return this.ident.substr(0,2) + slots[this.slot] + this.ident.substr(2);
|
||||
};
|
||||
Pokemon.prototype.removeVolatile = function (volatile) {
|
||||
if (!this.hasVolatile(volatile)) return;
|
||||
|
|
@ -1771,7 +1771,7 @@ var Side = (function () {
|
|||
if (!kwargs.silent) {
|
||||
var fromeffect = Tools.getEffect(kwargs.from);
|
||||
switch (fromeffect.id) {
|
||||
case 'allyswitch':
|
||||
case 'allyswitch':
|
||||
this.battle.message('<small>' + pokemon.getName() + ' and ' + target.getLowerName() + ' switched places.</small>');
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -464,7 +464,7 @@
|
|||
}
|
||||
if (this.request.forceSwitch !== true) {
|
||||
var faintedLength = this.request.forceSwitch.filter(function (fainted) {return fainted;}).length;
|
||||
this.choice.freedomDegrees = faintedLength - this.battle.mySide.pokemon.slice(this.battle.mySide.active.length).filter(function (mon) {return !mon.zerohp;}).length;
|
||||
this.choice.freedomDegrees = faintedLength - this.battle.mySide.pokemon.slice(this.battle.mySide.active.length).filter(function (mon) {return !mon.zerohp;}).length;
|
||||
if (this.choice.freedomDegrees < 0) this.choice.freedomDegrees = 0;
|
||||
this.choice.canSwitch = faintedLength - this.choice.freedomDegrees;
|
||||
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@
|
|||
this.room.notifyOnce("Tournament Automatic Disqualification Warning", "Room: " + this.room.title + "\nSeconds: " + seconds, 'tournament-autodq-warning');
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case 'autostart':
|
||||
if (data[0] === 'off') {
|
||||
this.room.$chat.append("<div class=\"notice tournament-message-autostart\">The tournament's automatic start timeout has been turned off.</div>");
|
||||
|
|
|
|||
|
|
@ -862,7 +862,7 @@
|
|||
Tools.prefs('avatar', avatar);
|
||||
}
|
||||
return text; // Send the /avatar command through to the server.
|
||||
|
||||
|
||||
// documentation of client commands
|
||||
case 'help':
|
||||
switch (toId(target)) {
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@
|
|||
},
|
||||
|
||||
// drag and drop
|
||||
|
||||
|
||||
// because of a bug in Chrome and Webkit:
|
||||
// https://code.google.com/p/chromium/issues/detail?id=410328
|
||||
// we can't use CSS :hover
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user