From 63d6cb4c276d8eb9ca006d7e0f0bec0cf69ebbb0 Mon Sep 17 00:00:00 2001 From: urkerab Date: Mon, 28 Sep 2015 22:17:39 +0100 Subject: [PATCH] =?UTF-8?q?Clear=20known=20Pok=C3=A9mon=20when=20resetting?= =?UTF-8?q?=20battle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/battle.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/battle.js b/js/battle.js index 6023b8ab4..6fd497b82 100644 --- a/js/battle.js +++ b/js/battle.js @@ -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);