Skip to content

Commit

Permalink
bam
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 28, 2023
1 parent 4a4c0f6 commit 82c968a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@
if(moving_xeno.throwing)
return

if(moving_xeno.current_target.is_mob_incapacitated())
var/incapacitated_check = TRUE
if(istype(moving_xeno.current_target, /mob))
var/mob/current_target_mob = moving_xeno.current_target
incapacitated_check = current_target_mob.is_mob_incapacitated()

if(incapacitated_check)
return ..()

var/turf/target_turf = get_turf(moving_xeno.current_target)
Expand Down
7 changes: 6 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/castes/Lurker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@
if(get_dist(current_target, src) > 1)
return

if(!current_target.is_mob_incapacitated())
if(!istype(current_target, /mob))
return

var/mob/current_target_mob = current_target

if(!current_target_mob.is_mob_incapacitated())
return

if(isxeno(current_target.pulledby))
Expand Down

0 comments on commit 82c968a

Please sign in to comment.