From bd7d70ad82b60ae35c91770af1adce1828e89f06 Mon Sep 17 00:00:00 2001
From: Mario <mario@smbclan.net>
Date: Mon, 22 Aug 2016 19:40:15 +1000
Subject: [PATCH] Add a couple of skipped bot_attack cases

---
 qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc | 4 ++++
 qcsrc/common/triggers/func/door_secret.qc                 | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
index 3f48fd15a9..8e60bc3089 100644
--- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
+++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
@@ -220,6 +220,8 @@ void onslaught_updatelinks()
 			if (l.goalentity)
 			{
 				l.goalentity.takedamage = DAMAGE_NO;
+				if(l.goalentity.bot_attack)
+					IL_REMOVE(g_bot_targets, l.goalentity);
 				l.goalentity.bot_attack = false;
 			}
 		}
@@ -229,6 +231,8 @@ void onslaught_updatelinks()
 			if (l.goalentity)
 			{
 				l.goalentity.takedamage = DAMAGE_AIM;
+				if(!l.goalentity.bot_attack)
+					IL_PUSH(g_bot_targets, l.goalentity);
 				l.goalentity.bot_attack = true;
 			}
 		}
diff --git a/qcsrc/common/triggers/func/door_secret.qc b/qcsrc/common/triggers/func/door_secret.qc
index efe997c855..0b8930aec5 100644
--- a/qcsrc/common/triggers/func/door_secret.qc
+++ b/qcsrc/common/triggers/func/door_secret.qc
@@ -20,6 +20,8 @@ void fd_secret_use(entity this, entity actor, entity trigger)
 	string message_save;
 
 	this.health = 10000;
+	if(!this.bot_attack)
+		IL_PUSH(g_bot_targets, this);
 	this.bot_attack = true;
 
 	// exit if still moving around...
-- 
2.39.5