Update ai_holder_targeting_vr.dm (#6694)

This commit is contained in:
Seris02
2023-08-01 14:32:20 +08:00
committed by GitHub
parent d5b79ea0a0
commit 9a062c4786

View File

@@ -1,16 +1,4 @@
/datum/ai_holder/can_see_target(atom/movable/the_target, view_range = vision_range)
if(the_target && isbelly(the_target.loc))
if(the_target && !isturf(the_target.loc) && !ismecha(the_target.loc)) //CHOMPEdit, AI shouldn't be targetting people inside objects of any kind
return FALSE
return ..()
/*
/datum/ai_holder/can_see_target(atom/movable/the_target, view_range = vision_range)
log_world("TARGET: [the_target] and TARGET.LOC: [the_target.loc]")
if(the_target && !isturf(the_target.loc)) //CHOMPEdit, AI shouldn't be targetting people inside objects of any kind
if(ismecha(the_target.loc)) //Except mechs, of course
target = the_target.loc
else
return FALSE
return ..()
*/