/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_planning_subtree/target_retaliate/to_fleePlaces a mob which you can see and who has recently attacked you into some 'run away from this' AI keys Can use a different targeting strategy than you use to select attack targets Not required if fleeing is the only target behaviour or uses the same target datum
/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