Fixes antag datum not respecting restricted_jobs depending on config

Fixes #10657
This commit is contained in:
mwerezak
2015-08-17 21:00:22 -04:00
parent f0c9f16099
commit ef8e3a94a0

View File

@@ -2,9 +2,9 @@
if(player.current && jobban_isbanned(player.current, bantype))
return 0
if(!ignore_role)
if(player.assigned_role in protected_jobs)
if(player.assigned_role in restricted_jobs)
return 0
if(config.protect_roles_from_antagonist && (player.assigned_role in restricted_jobs))
if(config.protect_roles_from_antagonist && (player.assigned_role in protected_jobs))
return 0
return 1