mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-13 19:12:13 +00:00
Fixes document exchange runtiming when there's no other valid targets (#30870)
* checks length of possible opponents * log_debug instead
This commit is contained in:
@@ -571,6 +571,9 @@ GLOBAL_LIST_EMPTY(antagonists)
|
||||
return
|
||||
var/list/possible_opponents = SSticker.mode.traitors + SSticker.mode.vampires + SSticker.mode.changelings + SSticker.mode.mindflayers
|
||||
possible_opponents -= owner
|
||||
if(!length(possible_opponents))
|
||||
log_debug("[owner] was picked to start a document exchange but there were no other antagonists.")
|
||||
return
|
||||
var/datum/mind/opponent = pick(possible_opponents)
|
||||
var/datum/antagonist/other_antag = opponent.has_antag_datum(/datum/antagonist)
|
||||
if(other_antag)
|
||||
|
||||
Reference in New Issue
Block a user