Nuke landing doesn't reset safemode
-
Hi guys,
Last night was pretty intense receiving a lot of nukes from the Thunderkittens. I used a safemode before nuke impact since the docs indicate that the cooldown timer should be reset after impact. However this didn't happend. Luckily Bonzai and SteeleR showed to be real gentlemen and agreed to cancel their attack due to this bug. Thanks for the fair play guys, really appreciated!
Replay of last nuke landing: https://screeps.com/a/#!/history/E31S32?t=15317280Kind regards,
Qzar
-
This is not a bug, but intended behavior. The documentation says:
If the room is in safe mode, then the safe mode is cancelled immediately, and the safe mode cooldown is reset to 0.
The safe mode cooldown timer is only reset when the room is in safe mode. If you had no safe mode active by that moment, the cooldown remains the same.
-
Hi Artem, the room actually was in safemode when the nuke landed so it definitely is a bug.
Tick 15315822: First nukes land, controller upgrade is blocked for 200 ticks
link: https://screeps.com/a/#!/history/E31S32?t=15315822
Tick 15316023: Started safemode
Tick 15316226: Second nuke lands, safemode is cancelled but cooldown timer is not reset
-
Oh, right, the entire cooldown reset logic is somehow missing in nuke processing... Will fix ASAP.
-
Hotfix deployed.