mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Don't load spell overrides for inactive specializations
This commit is contained in:
@@ -2730,7 +2730,7 @@ bool Player::AddTalent(TalentEntry const* talent, uint8 spec, bool learning)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (talent->OverridesSpellID)
|
||||
if (spec == GetActiveTalentGroup() && talent->OverridesSpellID)
|
||||
AddOverrideSpell(talent->OverridesSpellID, talent->SpellID);
|
||||
|
||||
PlayerTalentMap::iterator itr = GetTalentMap(spec)->find(talent->ID);
|
||||
|
||||
Reference in New Issue
Block a user