Fixes autosleever compatibility to match normal resleever

This commit is contained in:
TheGreatKitsune
2023-03-31 10:07:09 -05:00
parent 6916040a4d
commit 11bdec1581

View File

@@ -84,7 +84,7 @@
if(ghost.client.prefs.species) // In case we somehow don't have a species set here.
chosen_species = GLOB.all_species[ghost_client.prefs.species]
if(chosen_species.flags && NO_SCAN)
if((chosen_species.spawn_flags & SPECIES_IS_WHITELISTED) || (chosen_species.spawn_flags & SPECIES_IS_RESTRICTED))
to_chat(ghost, "<span class='warning'>This species cannot be resleeved!</span>")
return
// CHOMPEdit End: Add checks for Whitelist + Resleeving