aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-20 12:34:14 -0600
committermegamage <none@none>2009-02-20 12:34:14 -0600
commit82dbe1ed5ff5c9cea03e283bd285166d460f9b70 (patch)
tree9ac9dc4bfecf2db2e28486744c8854a0bd3a278d
parent1b587c0fe3355567173918d7a0b56141c6bcd1b2 (diff)
*Do not learn lower rank talents when removing a high rank talents. This may fix the bug about talents resetting when log in.
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 5ebc547f7cc..26ec83f82d6 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -3165,10 +3165,10 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool update_action_bar_
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spell_id);
// if talent then lesser rank also talent and need learn
- if(talentCosts)
+ /*if(talentCosts)
learnSpell (prev_id,false);
// 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)
PlayerSpellMap::iterator prev_itr = m_spells.find(prev_id);