gegerlan / aog

Check out taber's updated 2022 version at taberenc/AOG_2022
https://github.com/taberenc/AOG_2022
44 stars 66 forks source link

Game doesn't detect if every enemy is dead. #4

Open gegerlan opened 12 years ago

gegerlan commented 12 years ago

The best way of checking if the battle is over, is probably to track if there are any enemies left on the map. Add a hook to the destruction of battler, check if there are any more battlers still alive, and if there isn't: call the post battle cleanup.

This would supplement the current battle timeout, since it wouldn't properly handle maps where there are many enemies.