diff --git a/code/game/machinery/excelsior/redirector.dm b/code/game/machinery/excelsior/redirector.dm index dd7fd2e7b07..bf3d132c741 100644 --- a/code/game/machinery/excelsior/redirector.dm +++ b/code/game/machinery/excelsior/redirector.dm @@ -24,8 +24,9 @@ /obj/machinery/excelsior_redirector/attackby(obj/item/I, mob/living/user) if(istool(I)) - if(rebootTimer) + if(redirectTimer) to_chat(user, SPAN_NOTICE("You can't unanchor \the [src] whilst it's running!")) + return if(I.get_tool_quality(QUALITY_BOLT_TURNING)) if(!anchored) var/area/ar = get_area(src) @@ -113,6 +114,7 @@ return to_chat(user, SPAN_NOTICE("You succesfully reboot \the [src]. Your hands are no longer moving on their own.")) deltimer(rebootTimer) + rebootTimer = null var/datum/faction/excelsior/commies = get_faction_by_id(FACTION_EXCELSIOR) for (var/datum/antagonist/A in commies.members) to_chat(A.owner.current, SPAN_EXCEL_NOTIF("\The [src] has been rebooted by [user]. It will need another reboot in 3 minutes.")) @@ -151,8 +153,10 @@ /obj/machinery/excelsior_redirector/proc/stopRedirecting() deltimer(redirectTimer) + redirectTimer = null if(rebootTimer) deltimer(rebootTimer) + rebootTimer = null SSticker.excelsior_hijacking = 0 var/decl/security_state/security_state = decls_repository.get_decl(GLOB.maps_data.security_state) security_state.set_security_level(oldSecurityLevel, force_change = TRUE)