notifyWhenAttacked on constructedWall doesn't work


  • Culture

    When the room is owned, the function returns 0 but never actually changes the notification settings. It still can be changed manually.



  • I can confirm this. I currently use creeps to dismantle some of my old walls, and have them call target.notifyWhenAttacked(false) before doing anything. Yet I get emails about my walls being attacked.

    I can also replicate this in the console. On a rampart:

    > Game.getObjectById('57c9a4ff98f0d97072bdebef').notifyWhenAttacked(false)
    < 0
    > Game.getObjectById('57c9a4ff98f0d97072bdebef').notifyWhenAttacked(true)
    < 0

    I see the checkbox correctly trigger off and on again.

    When I do the same with a constructed wall, the output is similar:

    > Game.getObjectById('57a1e78accdfa2861a6cc1a0').notifyWhenAttacked(true)
    < 0
    > Game.getObjectById('57a1e78accdfa2861a6cc1a0').notifyWhenAttacked(false)
    < 0

    Yet the checkbox does not toggle.