[MIRROR] Dogs now properly unbuckle when fetching [MDB IGNORE] (#10253)

* Dogs now properly unbuckle when fetching  (#63583)

* Dogs now properly unbuckle when fetching

Co-authored-by: Bond <58570888+TheBonded@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-12-25 12:35:52 +01:00
committed by GitHub
parent 092cd4feff
commit a2c7adba83

View File

@@ -80,9 +80,14 @@
if(!istype(thrown_thing) || !isturf(thrown_thing.loc) || !can_see(pawn, thrown_thing, length=AI_DOG_VISION_RANGE))
return
var/mob/living/living_pawn = pawn
if(IS_DEAD_OR_INCAP(living_pawn))
return
current_movement_target = thrown_thing
blackboard[BB_FETCH_TARGET] = thrown_thing
blackboard[BB_FETCH_DELIVER_TO] = throwing_datum.thrower
if(living_pawn.buckled)
queue_behavior(/datum/ai_behavior/resist)
queue_behavior(/datum/ai_behavior/fetch)
/// Someone's interacting with us by hand, see if they're being nice or mean