Skip to content

Commit 2ebcc28

Browse files
authored
Fix dead AIs being forced to announce new arrivals (ParadiseSS13#28170)
PR fixes ParadiseSS13#28143 Adds a `stat` check lost in an earlier migration from `GLOB.alive_mob_list` to `GLOB.ai_list`, to ensure dead AIs aren't added to the list of announcers.
1 parent 529e55b commit 2ebcc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/modules/mob/new_player/new_player.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@
401401
if(SSticker.current_state == GAME_STATE_PLAYING)
402402
var/ailist[] = list()
403403
for(var/mob/living/silicon/ai/A in GLOB.ai_list)
404-
if(A.announce_arrivals)
404+
if(A.stat != DEAD && A.announce_arrivals)
405405
ailist += A
406406
if(length(ailist))
407407
var/mob/living/silicon/ai/announcer = pick(ailist)

0 commit comments

Comments
 (0)