mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Fixes bots trying to blacklist items already marked for QDEL (#96124)
This commit is contained in:
@@ -63,6 +63,8 @@
|
||||
source.clear_path_hud(remove_hud = FALSE)
|
||||
|
||||
/datum/ai_controller/basic_controller/bot/proc/add_to_blacklist(atom/target, duration)
|
||||
if(QDELETED(target))
|
||||
return
|
||||
var/final_duration = duration || blackboard[BB_UNREACHABLE_LIST_COOLDOWN]
|
||||
set_blackboard_key_assoc_lazylist(BB_TEMPORARY_IGNORE_LIST, target, TRUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(remove_from_blacklist), target), final_duration)
|
||||
|
||||
Reference in New Issue
Block a user