mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Fix late-join not showing alt-title jobs with differing minimum ages from main job (#7156)
Fixes #7122 - basically just makes IsJobAvailable() check for the player's selected alt-title rather than just the main title, so you can late-join as an 18-year-old medical intern again for example Also first PR apologies in advance
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
if(jobban_isbanned(player, rank))
|
||||
return FALSE
|
||||
|
||||
if(!(rank in player.client.prefs.GetValidTitles(job)))
|
||||
if(!(player.client.prefs.GetPlayerAltTitle(job) in player.client.prefs.GetValidTitles(job)))
|
||||
to_chat(player, "<span class='warning'>Your character is too young!</span>")
|
||||
return FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user