Clear known Pokémon when resetting battle

This commit is contained in:
urkerab 2015-09-28 22:17:39 +01:00
parent 5a89578d4c
commit 63d6cb4c27

View File

@ -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);