File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import {
5555 statsPreSplitToWasm ,
5656 trainerMemoryToWasm ,
5757} from './convert'
58+ import { isEvolution } from './Lookup'
5859import { adjustMovePPBetweenFormats , generateIVs , getAbilityFromNumber , ivsFromDVs } from './util'
5960
6061export class OHPKM extends OhpkmV2Wasm implements PKMInterface {
@@ -696,7 +697,13 @@ export class OHPKM extends OhpkmV2Wasm implements PKMInterface {
696697 this . movePP = adjustMovePPBetweenFormats ( this , other )
697698 this . movePPUps = other . movePPUps as FourMoves
698699
699- this . speciesAndForme = new SpeciesAndForme ( other . dexNum , other . formeNum )
700+ if ( this . dexNum !== other . dexNum && isEvolution ( this , other ) ) {
701+ this . speciesAndForme = new SpeciesAndForme ( other . dexNum , other . formeNum )
702+ }
703+
704+ if ( this . dexNum === other . dexNum || isEvolution ( this , other ) ) {
705+ this . speciesAndForme = new SpeciesAndForme ( other . dexNum , other . formeNum )
706+ }
700707
701708 this . heldItemIndex = other . heldItemIndex
702709 if ( other . ability && ! FORMATS_WITHOUT_ABILITIES . includes ( other . format ) ) {
You can’t perform that action at this time.
0 commit comments