prevents shunted AIs from doomsdaying (tg#51284)

This commit is contained in:
Detective Google
2020-06-22 15:53:55 -05:00
parent a0a4007332
commit 715b1f85da
2 changed files with 3 additions and 0 deletions
@@ -257,6 +257,8 @@ GLOBAL_LIST_INIT(blacklisted_malf_machines, typecacheof(list(
return
if (active)
return //prevent the AI from activating an already active doomsday
if (owner_AI.shunted)
return //prevent AI from activating doomsday while shunted.
active = TRUE
set_us_up_the_bomb(owner)