Bot attack fix

- Fixes bots attacking through windows
Merge pull request #5058 from Loganbacca/botfix

Bot attack fix