Skip to content

Commit

Permalink
Fix some active spells learned by talents disappearing from spellbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Warlockbugs committed Nov 2, 2016
1 parent 718dad4 commit f3b8c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Player.cpp
Expand Up @@ -3392,7 +3392,7 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank, bo
// Always try to remove all dependent spells if present (needed to reset some talents properly)
SpellLearnSpellMapBounds spell_bounds = sSpellMgr.GetSpellLearnSpellMapBounds(spell_id);
for (SpellLearnSpellMap::const_iterator child_itr = spell_bounds.first; child_itr != spell_bounds.second; ++child_itr)
removeSpell(child_itr->second.spell, !IsPassiveSpell(child_itr->second.spell), learn_low_rank);
removeSpell(child_itr->second.spell, !IsPassiveSpell(child_itr->second.spell), !IsPassiveSpell(child_itr->second.spell));

// search again just in case
itr = m_spells.find(spell_id);
Expand Down

0 comments on commit f3b8c8f

Please sign in to comment.