Add comment explaining bang

This commit is contained in:
Xavion3 2025-09-02 06:15:35 +10:00
parent bd7de61a56
commit eb8c0c0243

View File

@ -4565,6 +4565,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
try {
SoundFade.fadeOut(scene, cry, fixedInt(Math.ceil(duration * 0.2)));
fusionCry = this.getFusionSpeciesForm(undefined, true).cry({
// Typescript's type checker doesn't handle using and assigning to the same variable in one line correctly.
seek: Math.max(fusionCry!.totalDuration * 0.4, 0),
...soundConfig,
});