From e0cce6984c3e8eef9c68a9e551e253e0737959b1 Mon Sep 17 00:00:00 2001 From: click Date: Sun, 2 May 2010 16:19:38 +0200 Subject: [PATCH] Fix: Give the correct amount of talent points when leveling up after a talent reset - patch by Liberate Fixes issue #1568, fixes issue #765, fixes issue #772 --HG-- branch : trunk --- src/game/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index a4825e0a07..04c7a14419 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -3890,11 +3890,11 @@ bool Player::resetTalents(bool no_cost) // skip non-existant talent ranks if (talentInfo->RankID[rank] == 0) continue; - removeSpell(talentInfo->RankID[rank], true); + removeSpell(talentInfo->RankID[rank]); if (const SpellEntry *_spellEntry = sSpellStore.LookupEntry(talentInfo->RankID[rank])) for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) // search through the SpellEntry for valid trigger spells if (_spellEntry->EffectTriggerSpell[i] > 0 && _spellEntry->Effect[i] == SPELL_EFFECT_LEARN_SPELL) - removeSpell(_spellEntry->EffectTriggerSpell[i], true); // and remove any spells that the talent teaches + removeSpell(_spellEntry->EffectTriggerSpell[i]); // and remove any spells that the talent teaches // if this talent rank can be found in the PlayerTalentMap, mark the talent as removed so it gets deleted PlayerTalentMap::iterator plrTalent = m_talents[m_activeSpec]->find(talentInfo->RankID[rank]); if (plrTalent != m_talents[m_activeSpec]->end())