Skip to content

Commit

Permalink
bugfix: Malf AI Destroy Datum Fix (#3752)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottfrei authored Oct 22, 2023
1 parent 7df2c3f commit 5a9d9a9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions code/modules/antagonists/malf_ai/malf_ai_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@


/datum/antagonist/malf_ai/Destroy(force, ...)
var/mob/living/silicon/ai/malf = owner.current
malf.clear_zeroth_law()
malf.common_radio.channels.Remove("Syndicate") // De-traitored AIs can still state laws over the syndicate channel without this
malf.laws.sorted_laws = malf.laws.inherent_laws.Copy() // AI's 'notify laws' button will still state a law 0 because sorted_laws contains it
malf.show_laws()
malf.remove_malf_abilities()
QDEL_NULL(malf.malf_picker)
var/mob/living/silicon/ai/malf = owner?.current
if(istype(malf))
malf.clear_zeroth_law()
malf.common_radio.channels.Remove("Syndicate") // De-traitored AIs can still state laws over the syndicate channel without this
malf.laws.sorted_laws = malf.laws.inherent_laws.Copy() // AI's 'notify laws' button will still state a law 0 because sorted_laws contains it
malf.show_laws()
malf.remove_malf_abilities()
QDEL_NULL(malf.malf_picker)
return ..()


Expand Down

0 comments on commit 5a9d9a9

Please sign in to comment.