From de00de4a04eed500d35ef8a44d6647ada0e0c46f Mon Sep 17 00:00:00 2001 From: Funce Date: Sun, 17 Jan 2021 23:31:52 +1300 Subject: [PATCH] Antag Removal via admin also needs to obey ambitions (#2710) --- code/modules/antagonists/_common/antag_datum.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/antagonists/_common/antag_datum.dm b/code/modules/antagonists/_common/antag_datum.dm index 301b677b14b..e3829f314e7 100644 --- a/code/modules/antagonists/_common/antag_datum.dm +++ b/code/modules/antagonists/_common/antag_datum.dm @@ -220,6 +220,10 @@ GLOBAL_LIST_EMPTY(antagonists) message_admins("[key_name_admin(user)] has removed [name] antagonist status from [key_name_admin(owner)].") log_admin("[key_name(user)] has removed [name] antagonist status from [key_name(owner)].") on_removal() + //SKYRAT EDIT ADDITION BEGIN - AMBITIONS + if(uses_ambitions && owner.my_ambitions.submitted) + ambitions_removal() + //SKYRAT EDIT ADDITION END //gamemode/proc/is_mode_antag(antagonist/A) => TRUE/FALSE