*A better fix of the last rev.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-20 12:41:55 -06:00
parent 82dbe1ed5f
commit bb9365f318
+5 -3
View File
@@ -3165,10 +3165,12 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool update_action_bar_
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spell_id); SpellEntry const *spellInfo = sSpellStore.LookupEntry(spell_id);
// if talent then lesser rank also talent and need learn // if talent then lesser rank also talent and need learn
/*if(talentCosts) if(talentCosts)
learnSpell (prev_id,false); {
//learnSpell (prev_id,false);
}
// if ranked non-stackable spell: need activate lesser rank and update dendence state // if ranked non-stackable spell: need activate lesser rank and update dendence state
else*/ if(cur_active && !SpellMgr::canStackSpellRanks(spellInfo) && spellmgr.GetSpellRank(spellInfo->Id) != 0) else if(cur_active && !SpellMgr::canStackSpellRanks(spellInfo) && spellmgr.GetSpellRank(spellInfo->Id) != 0)
{ {
// need manually update dependence state (learn spell ignore like attempts) // need manually update dependence state (learn spell ignore like attempts)
PlayerSpellMap::iterator prev_itr = m_spells.find(prev_id); PlayerSpellMap::iterator prev_itr = m_spells.find(prev_id);