From 39c4cd79881450f8eaee1f7789f646faaaae3dbd Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Tue, 3 Jul 2012 01:21:49 -0500 Subject: [PATCH] Fix illusion being set to null. --- simulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator.js b/simulator.js index 5aa3a41b0a..ba4402fd8b 100644 --- a/simulator.js +++ b/simulator.js @@ -195,7 +195,6 @@ function BattlePokemon(set, side) { }; this.update = function(init) { - selfP.illusion = null; selfP.baseStats = selfP.template.baseStats; // reset for Light Metal etc selfP.weightkg = selfP.template.weightkg; @@ -462,6 +461,7 @@ function BattlePokemon(set, side) { selfP.movedThisTurn = false; selfP.newlySwitched = true; selfP.beingCalledBack = false; + selfP.illusion = null; selfP.update(init); };