From 4772e5a325039d1ebdfc8650c159cca806c2243f Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 14 May 2023 15:32:42 -0400 Subject: [PATCH] Fix SHOULD_NOT_SLEEP hit in basilisk AI (#75413) `GiveTarget(null)` is called in `simple_animal/hostile/Destroy()`. See #75232 --- .../mob/living/simple_animal/hostile/mining_mobs/basilisk.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm index e5ef6a6559dd1..765f18a1663db 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm @@ -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)