Calling notifyWhenAttacked(false) on spawning creep returns -4
-
I was revisiting my spawning code due to annoying emails gotten during attacks, which used to work fine.
I noticed that while a creep is spawning you can't disable the notification option. The docs don't say this.I've got a quick workaround by checking the .spawning property.
Could we update the docs or make it so we can always alter this value?