notifyWhenAttacked doesn't work for walls



  • in my code I have:

     

        target.notifyWhenAttacked(false)

        creep.dismantle(target)

     

    However, the target is still constantly spamming me with attacked notifications. I even did it in console: `Game.getObjectById("abcdef").notifyWhenAttacked(false)` but I cannot get the attack notifications to stop; and clicking on the wall in question still has the notification checkbox checked.

     

    This appears to only be an issue with constructed walls... These structures don't respect the `notifyWhenAttacked` method even when it returns 0.



  • Same thing happens when dismantling roads 😕 Spams me with attack messages in my email. Although roads don't even have the checkbox in the UI like walls do, and `notifyWhenAttacked(false)` still returns 0 but doesn't do anything.