Help with boss spawn event

not totally on topic but very related:

because i’m planning to use the same logic for the boss too but with some more “attacks”, then probably the same issue gonna happens then it would solve the possible same issue in a future.