mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Merge pull request #492 from urkerab/side-reset-pokemon
Clear known Pokémon when resetting battle
This commit is contained in:
commit
7bb7965018
|
|
@ -1238,11 +1238,9 @@ var Side = (function () {
|
|||
};
|
||||
|
||||
Side.prototype.reset = function () {
|
||||
this.pokemon = [];
|
||||
this.updateSprites();
|
||||
this.sideConditions = {};
|
||||
for (var i = 0; i < this.pokemon.length; i++) {
|
||||
this.pokemon[i].reset();
|
||||
}
|
||||
};
|
||||
Side.prototype.updateSprites = function () {
|
||||
this.z = (this.n ? 200 : 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user