Core/Players: Don't load spell overrides for inactive specializations
Port From (https://github.com/TrinityCore/TrinityCore/commit/f1cde4cdacd85051baf1c88edc8ca730a0fcb898)
This commit is contained in:
@@ -86,7 +86,7 @@ namespace Game.Entities
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (talent.OverridesSpellID != 0)
|
if (spec == GetActiveTalentGroup() && talent.OverridesSpellID != 0)
|
||||||
AddOverrideSpell(talent.OverridesSpellID, talent.SpellID);
|
AddOverrideSpell(talent.OverridesSpellID, talent.SpellID);
|
||||||
|
|
||||||
if (GetTalentMap(spec).ContainsKey(talent.Id))
|
if (GetTalentMap(spec).ContainsKey(talent.Id))
|
||||||
|
|||||||
Reference in New Issue
Block a user