Tooltips: Fix interation with Galar starters' Gmax moves (#1550)

This commit is contained in:
Kris Johnson
2020-07-13 00:39:04 -06:00
committed by GitHub
parent 6f9034b708
commit 2db4e26e42

View File

@@ -587,10 +587,12 @@ class BattleTooltips {
maxMove = this.battle.dex.getMove(BattleTooltips.maxMoveTable['Psychic']);
}
}
const basePower = ['gmaxdrumsolo', 'gmaxfireball', 'gmaxhydrosnipe'].includes(maxMove.id) ?
maxMove.basePower : move.maxMove.basePower;
move = new Move(maxMove.id, maxMove.name, {
...maxMove,
category: move.category,
basePower: move.maxMove!.basePower,
basePower,
});
}
}