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:
JohnWildkins
2019-10-14 22:50:50 +03:00
committed by Erki
parent 6b4f3c85af
commit 784b76af04
3 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -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