aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-20 23:04:39 -0800
committermaximius <none@none>2009-11-20 23:04:39 -0800
commitdb132054fdd3ff93b58a844a2c3fff66fc49e563 (patch)
treee59eb00541bdf23feddecc9886272b4112e3718d /src/game/Player.cpp
parente4e61ac99da40cc7856d7dac7d2b3882c162f4f4 (diff)
*Minor correction in talent resetting, and cosmetic change in spec swapping.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 7e4c3d9e24d..7d302e26d47 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -3786,10 +3786,6 @@ bool Player::resetTalents(bool no_cost)
PlayerTalentMap::const_iterator foundTalent = m_talents[m_activeSpec]->find(i);
if (foundTalent == m_talents[m_activeSpec]->end() || foundTalent->second->state == PLAYERSPELL_REMOVED)
continue;
- else
- foundTalent->second->state = PLAYERSPELL_REMOVED;
-
- removeSpell(i, !IsPassiveSpell(i), false);
/*
for (PlayerTalentMap::iterator itr = m_talents[m_activeSpec]->begin(); itr != m_talents[m_activeSpec]->end(); ++itr)
@@ -3829,6 +3825,8 @@ bool Player::resetTalents(bool no_cost)
++itr;
}
}
+ removeSpell(i, !IsPassiveSpell(i), false);
+ foundTalent->second->state = PLAYERSPELL_REMOVED;
}
SetFreeTalentPoints(talentPointsForLevel);
@@ -22011,8 +22009,6 @@ void Player::ActivateSpec(uint8 spec)
if (!talentInfo)
continue;
- removeSpell(itr->first, !IsPassiveSpell(itr->first), false);
-
for (uint8 rank = 0; rank < MAX_TALENT_RANK; ++rank)
{
for (PlayerSpellMap::iterator itr2 = GetSpellMap().begin(); itr2 != GetSpellMap().end();)
@@ -22043,6 +22039,7 @@ void Player::ActivateSpec(uint8 spec)
++itr2;
}
}
+ removeSpell(itr->first, !IsPassiveSpell(itr->first), false);
}
// set glyphs