Core/Chat: Allow incorrect spell/skill language assignments to mirror client behavior

This commit is contained in:
Shauren
2021-05-02 00:44:31 +02:00
parent ede3e415ab
commit 14098b28b3
13 changed files with 75 additions and 151 deletions

View File

@@ -291,7 +291,9 @@ public:
{
sLanguageMgr->ForEachLanguage([handler](uint32 /*lang*/, LanguageDesc const& languageDesc)
{
handler->GetSession()->GetPlayer()->LearnSpell(languageDesc.SpellId, false);
if (languageDesc.SpellId)
handler->GetSession()->GetPlayer()->LearnSpell(languageDesc.SpellId, false);
return true;
});