mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
Red and black raptors no longer retaliate against their tamer's accidental attacks (#95625)
This commit is contained in:
@@ -157,3 +157,13 @@
|
||||
|
||||
/datum/targeting_strategy/basic/exact_match
|
||||
check_factions_exactly = TRUE
|
||||
|
||||
/datum/targeting_strategy/basic/exact_match/ignore_friends
|
||||
|
||||
/datum/targeting_strategy/basic/exact_match/ignore_friends/can_attack(mob/living/living_mob, atom/the_target, vision_range)
|
||||
. = ..()
|
||||
if (!.)
|
||||
return FALSE
|
||||
if (living_mob.ai_controller.blackboard[BB_FRIENDS_LIST] && (the_target in living_mob.ai_controller.blackboard[BB_FRIENDS_LIST]))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user