Skip to content

Commit

Permalink
Fix SHOULD_NOT_SLEEP hit in basilisk AI (tgstation#75413)
Browse files Browse the repository at this point in the history
`GiveTarget(null)` is called in `simple_animal/hostile/Destroy()`.

See tgstation#75232
  • Loading branch information
Cyberboss authored May 14, 2023
1 parent 466db13 commit 4772e5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
if(..()) //we have a target
var/atom/target_from = GET_TARGETS_FROM(src)
if(isliving(target) && !target.Adjacent(target_from) && ranged_cooldown <= world.time)//No more being shot at point blank or spammed with RNG beams
OpenFire(target)
INVOKE_ASYNC(src, PROC_REF(OpenFire), target)

/mob/living/simple_animal/hostile/asteroid/basilisk/ex_act(severity, target)
switch(severity)
Expand Down

0 comments on commit 4772e5a

Please sign in to comment.