Core/Misc: Update faction change learned language skills for new races

Port From (https://github.com/TrinityCore/TrinityCore/commit/b506a534430049d9abc5fc757bca3651c0ca67d0)
This commit is contained in:
Hondacrx
2024-11-11 10:34:01 -05:00
parent 40ec7e2999
commit 30ab2b625c
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -6487,7 +6487,10 @@ namespace Game
if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.Legion && _class == Class.DemonHunter) if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.Legion && _class == Class.DemonHunter)
continue; continue;
if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.Dragonflight && _class == Class.Evoker) if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.Dragonflight && (_class == Class.Evoker || race == Race.DracthyrAlliance || race == Race.DracthyrHorde))
continue;
if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.TheWarWithin && (race == Race.EarthenDwarfHorde || race == Race.EarthenDwarfAlliance))
continue; continue;
// fatal error if no level 1 data // fatal error if no level 1 data
+5
View File
@@ -1943,6 +1943,7 @@ namespace Game
case Race.Vulpera: case Race.Vulpera:
stmt.AddValue(1, 2776); stmt.AddValue(1, 2776);
break; break;
case Race.PandarenNeutral:
case Race.PandarenAlliance: case Race.PandarenAlliance:
case Race.PandarenHorde: case Race.PandarenHorde:
stmt.AddValue(1, 905); stmt.AddValue(1, 905);
@@ -1951,6 +1952,10 @@ namespace Game
case Race.DracthyrHorde: case Race.DracthyrHorde:
stmt.AddValue(1, 138); stmt.AddValue(1, 138);
break; break;
case Race.EarthenDwarfHorde:
case Race.EarthenDwarfAlliance:
stmt.AddValue(1, 140);
break;
default: default:
Log.outError(LogFilter.Player, $"Could not find language data for race ({factionChangeInfo.RaceID})."); Log.outError(LogFilter.Player, $"Could not find language data for race ({factionChangeInfo.RaceID}).");
SendCharFactionChange(ResponseCodes.CharCreateError, factionChangeInfo); SendCharFactionChange(ResponseCodes.CharCreateError, factionChangeInfo);