mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-26 18:21:28 -05:00
Fix illusion being set to null.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user