SpawnCreep() additional option: notifyWhenAttacked
-
Structures and Creeps have a method notifyWhenAttacked which allows us to switch off the damage notifications.
For the specific case of Creeps, I suspect that in many cases the decision about whether to receive damage notifications is known at spawn time and doesn't change during the lifetime of that creep.
It would be a minor quality-of-life improvement, to be able to specify at the time of spawning the creep whether you want to receive damage notifications.
I propose then that the existing opts argument to SpawnCreep() is extended to allow a boolean attribute "notifyWhenAttacked" which, if set, will override the default setting.