Also check EggHatchPhase (for when the egg summary screen isn't used)

This commit is contained in:
NightKev 2025-01-04 05:28:05 -08:00
parent 8f05ac1db0
commit d347c891ea

View File

@ -1424,7 +1424,7 @@ export default class BattleScene extends SceneBase {
return 0; return 0;
} }
const isEggPhase: boolean = this.getCurrentPhase()?.constructor.name === "EggLapsePhase"; const isEggPhase: boolean = [ "EggLapsePhase", "EggHatchPhase" ].includes(this.getCurrentPhase()?.constructor.name ?? "");
switch (species.speciesId) { switch (species.speciesId) {
case Species.UNOWN: case Species.UNOWN: