aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-21 05:43:14 -0800
committermaximius <none@none>2009-11-21 05:43:14 -0800
commit51a2284f693060ff8b0b53256a1f0f71735448dd (patch)
tree446412cb82c33d4b6eb46754e9b4d6f803f1ea00
parent2e256f44db88a2f1dde6eada21eed8aa89ebb13b (diff)
*Don't set PLAYERSPELL_NEW. That will prevent the spell from being removed from the character DB, which is bad.
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 769bbf32b9f..f6b8a3fb3db 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -3805,7 +3805,6 @@ bool Player::resetTalents(bool no_cost)
if (itrFirstId == talentInfo->RankID[rank])
{
itr->second->disabled = false;
- itr->second->state = PLAYERSPELL_NEW;
removeSpell(itr->first, false, false);
itr = GetSpellMap().begin();
continue;
@@ -3813,7 +3812,6 @@ bool Player::resetTalents(bool no_cost)
else if (spellmgr.IsSpellLearnToSpell(talentInfo->RankID[rank], itrFirstId))
{
itr->second->disabled = false;
- itr->second->state = PLAYERSPELL_NEW;
removeSpell(itr->first, false, true);
itr = GetSpellMap().begin();
continue;
@@ -22030,7 +22028,6 @@ void Player::ActivateSpec(uint8 spec)
if (itrFirstId == talentInfo->RankID[rank])
{
itr->second->disabled = false;
- itr->second->state = PLAYERSPELL_NEW;
removeSpell(itr->first, false, false);
itr = GetSpellMap().begin();
continue;
@@ -22038,7 +22035,6 @@ void Player::ActivateSpec(uint8 spec)
else if (spellmgr.IsSpellLearnToSpell(talentInfo->RankID[rank], itrFirstId))
{
itr->second->disabled = false;
- itr->second->state = PLAYERSPELL_NEW;
removeSpell(itr->first, false, true);
itr = GetSpellMap().begin();
continue;