Fix level up moves not working for spliced Pokemon
parent
0f3ecbae12
commit
8ad08edd53
|
@ -562,6 +562,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||
if (this.fusionSpecies) {
|
||||
const fusionLevelMoves = this.getFusionSpeciesForm().getLevelMoves();
|
||||
const newLevelMoves: LevelMoves = [];
|
||||
while (levelMoves[0][0] < startingLevel)
|
||||
levelMoves.shift();
|
||||
while (fusionLevelMoves[0][0] < startingLevel)
|
||||
fusionLevelMoves.shift();
|
||||
for (let l = startingLevel; l <= this.level; l++) {
|
||||
while (levelMoves.length && levelMoves[0][0] === l) {
|
||||
const levelMove = levelMoves.shift();
|
||||
|
|
Loading…
Reference in New Issue