Core/Players: Properly mark all class/specialization/talent/pvp talent learned spells as dependent

Port From (https://github.com/TrinityCore/TrinityCore/commit/d7f5c19e1a1b969bf34fcf5cb38f54c1472583ea)
This commit is contained in:
hondacrx
2022-09-07 15:26:20 -04:00
parent 7357a98adc
commit 716cad0ec3
3 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ namespace Game.Entities
if (spellInfo == null || spellInfo.SpellLevel > GetLevel())
continue;
LearnSpell(specSpell.SpellID, false);
LearnSpell(specSpell.SpellID, true);
if (specSpell.OverridesSpellID != 0)
AddOverrideSpell(specSpell.OverridesSpellID, specSpell.SpellID);
}