Town Defense Mode

In Release-460 (x64) when I enable town defense mode, the Lua resource usage sky rockets, freezing the game constantly until the enemy is taken care of.