/tg/ Station 13 - Modules - Types

code/datums/ai/basic_mobs/basic_subtrees/target_retaliate.dm

/datum/ai_planning_subtree/target_retaliateSets the BB target to a mob which you can see and who has recently attacked you
/datum/ai_behavior/target_from_retaliate_listPicks a target from a provided list of atoms who have been pissing you off You will probably need /datum/element/ai_retaliate to take advantage of this unless you're populating the blackboard yourself