mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
Merge pull request #10745 from Kyep/stop_murdering_admins
Fixes #10729 - objectives targeting admin centcom characters
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user