Core/Players: assign forbidden skills to a proper position to no longer interfere with legit skills that have been stored as first element.

Port From (https://github.com/TrinityCore/TrinityCore/commit/2556d6d705c519fd461b9d9f10a4387d9beb199e)
This commit is contained in:
hondacrx
2022-09-11 14:34:55 -04:00
parent 81f3889539
commit f9b7f3fa9f
+2 -3
View File
@@ -366,9 +366,8 @@ namespace Game.Entities
SkillRaceClassInfoRecord rcEntry = Global.DB2Mgr.GetSkillRaceClassInfo(skill, race, GetClass());
if (rcEntry == null)
{
Log.outError(LogFilter.Player, "Character: {0}(GUID: {1} Race: {2} Class: {3}) has skill {4} not allowed for his race/class combination",
GetName(), GetGUID().ToString(), race, GetClass(), skill);
mSkillStatus.Add(skill, new SkillStatusData(0, SkillState.Deleted));
Log.outError(LogFilter.Player, $"Player::_LoadSkills: Player '{GetName()}' ({GetGUID()}, Race: {race}, Class: {GetClass()}) has forbidden skill {skill} for his race/class combination");
mSkillStatus.Add(skill, new SkillStatusData((uint)mSkillStatus.Count, SkillState.Deleted));
continue;
}