Merge pull request #492 from urkerab/side-reset-pokemon

Clear known Pokémon when resetting battle
This commit is contained in:
Guangcong Luo 2015-09-28 16:53:10 -05:00
commit 7bb7965018

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