mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Clear known Pokémon when resetting battle
This commit is contained in:
parent
5a89578d4c
commit
63d6cb4c27
|
|
@ -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