Praytic / youtd2

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

Can't Kill Creep #108

Closed ahkui closed 1 year ago

ahkui commented 1 year ago
image
ahkui commented 1 year ago
image
ahkui commented 1 year ago
image
Kvel2D commented 1 year ago

Thanks for finding this bug!

The problem was that creeps with multiple specials got their max hp reduced too much and the combat system couldn't process max hp of 0 correctly.

Changed max hp so that it never goes below 1.

Also fixed wave specials so that they don't reduce creep hp too much when there are multiple specials on a creep: acd1a625c8d7bebd33689876fa931e32d9d6f1b1