Praytic / youtd2

Classic community-driven session-based Tower Defense game with RPG elements.
https://youtd2.com/
MIT License
95 stars 16 forks source link

Double wave spawn #468

Closed PiotrKaszuba closed 1 month ago

PiotrKaszuba commented 1 month ago

Sometimes, when manually ordering next wave to start when the timer is about call the next wave anyway - two following waves will spawn immediately- I assume one for the timer and one for the manual order.

I'm not yet sure whether the lockout until the wave fully spawns is omitted or it is the Boss wave spawning first and the lockout time (to manually call next wave) finishes instantly as the boss appears.

Whether or not there is a bug (lockout not omited but rather caused by boss instantly finishing wave spawn) - I'd anyway suggest putting some minimum time i.e. 1 second between wave spawns so that when mass/normal wave spawns one can call next one immediately without any additional time (because it took longer than 1 second to fully spawn mass/normal), but when the boss spawns immediately that 1 second would need to pass still before Next wave button is enabled again.