mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-20 05:48:22 -05:00
Merge pull request #188 from Slayer95/megaevo
Fix Baton Pass displaying base forme for mega evos
This commit is contained in:
commit
5c6ba139bb
|
|
@ -4977,6 +4977,9 @@ function Battle(frame, logFrame, noPreload) {
|
|||
case 'detailschange':
|
||||
if (self.waitForResult()) return;
|
||||
var poke = self.getPokemon(args[1]);
|
||||
poke.removeVolatile('formechange');
|
||||
poke.removeVolatile('typechange');
|
||||
|
||||
var newSpecies;
|
||||
var commaIndex = args[2].indexOf(',');
|
||||
if (commaIndex === -1) {
|
||||
|
|
@ -4987,11 +4990,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.sprite.oldsp = null;
|
||||
poke.side.updateStatbar();
|
||||
poke.species = newSpecies;
|
||||
poke.spriteid = template.spriteid;
|
||||
poke.details = args[2];
|
||||
poke.searchid = args[1].substr(0, 2) + args[1].substr(3) + '|' + args[2];
|
||||
break;
|
||||
case 'teampreview':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user