Register the PLAYER_SPECIALIZATION_CHANGED event.
Where are you using GetSpecialization()? It's not in the code shown.
PLAYER_SPECIALIZATION_CHANGED fires before PLAYER_LOGIN so GetSpecialization() should be usable by then even on a cold login.
Last edited by Fizzlemizz : 06-16-17 at 10:19 PM.
|