Core/Players: re-organize SetSkill method to handle initialized skills correctly

Port From (https://github.com/TrinityCore/TrinityCore/commit/5860e128d687790c065c94adc8bacaf99db244fc)
This commit is contained in:
hondacrx
2020-02-22 19:19:39 -05:00
parent 3b8edeb6fd
commit 95a74e42cf
2 changed files with 33 additions and 30 deletions
+1
View File
@@ -328,6 +328,7 @@ namespace Game.Entities
InitStatsForLevel();
InitTaxiNodesForLevel();
InitTalentForLevel();
InitializeSkillFields();
InitPrimaryProfessions(); // to max set before any spell added
// apply original stats mods before spell loading or item equipment that call before equip _RemoveStatsMods()