mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 15:00:55 +00:00
Fix level up moves not working for spliced Pokemon
This commit is contained in:
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…
x
Reference in New Issue
Block a user