Merge pull request #10745 from Kyep/stop_murdering_admins

Fixes #10729 - objectives targeting admin centcom characters
This commit is contained in:
variableundefined
2019-01-27 09:40:57 +08:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
#define TARGET_INVALID_NOT_HUMAN 2
#define TARGET_INVALID_DEAD 3
#define TARGET_INVALID_NOCKEY 4
#define TARGET_INVALID_UNREACHABLE 5
//gamemode istype helpers
#define GAMEMODE_IS_BLOB (ticker && istype(ticker.mode, /datum/game_mode/blob))
+4
View File
@@ -31,6 +31,10 @@ var/list/potential_theft_objectives = subtypesof(/datum/theft_objective) - /datu
return TARGET_INVALID_DEAD
if(!possible_target.key)
return TARGET_INVALID_NOCKEY
if(possible_target.current)
var/turf/current_location = get_turf(possible_target.current)
if(current_location && !is_level_reachable(current_location.z))
return TARGET_INVALID_UNREACHABLE
/datum/objective/proc/find_target()
var/list/possible_targets = list()