Skip to content

Commit

Permalink
Fix interaction of megaevo with other forme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Slayer95 committed May 10, 2014
1 parent 8cf6726 commit 883b824
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4987,8 +4987,11 @@ function Battle(frame, logFrame, noPreload) {
var template = Tools.getTemplate(newSpecies);
if (poke.sprite.sp.shiny) template.shiny = true;
poke.sprite.animTransform(template);
poke.removeVolatile('formechange');
poke.removeVolatile('typechange');
poke.side.updateStatbar();
poke.species = newSpecies;
poke.spriteid = template.spriteid;
poke.searchid = args[1].substr(0, 2) + args[1].substr(3) + '|' + args[2];
break;
case 'teampreview':
Expand Down

0 comments on commit 883b824

Please sign in to comment.