First draft of usable G-Max forms (#14)

* First draft of usable G-Max forms

They are not fully usable yet, and still needs more work to reach that point.

* Fix Gigantamax on Pokémon with forms

Co-Authored-By: Samuel H <3542488+Flashfyre@users.noreply.github.com>

---------

Co-authored-by: Samuel H <3542488+Flashfyre@users.noreply.github.com>
This commit is contained in:
Madmadness65andSamuel H authored and GitHub committed 2024-02-14 00:21:44 -05:00
1 parent 9fa2c9fb9e
commit 2da283c600
398 files changed
+26955 -19888

No files matched your search

+5 -8
View File
@@ -237,10 +237,8 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
updateInfo(pokemon: Pokemon, instant?: boolean): Promise<void> {
return new Promise(resolve => {
if (!this.scene) {
resolve();
return;
}
if (!this.scene)
return resolve();
if (this.lastName !== pokemon.name) {
this.updateNameText(pokemon);
@@ -306,10 +304,9 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
this.lastLevelCapped = isLevelCapped;
}
if (this.lastHp !== pokemon.hp || this.lastMaxHp !== pokemon.getMaxHp()) {
updatePokemonHp();
return;
} else if (!this.player && this.lastLevel !== pokemon.level) {
if (this.lastHp !== pokemon.hp || this.lastMaxHp !== pokemon.getMaxHp())
return updatePokemonHp();
else if (!this.player && this.lastLevel !== pokemon.level) {
this.setLevel(pokemon.level);
this.lastLevel = pokemon.level;
}