diff options
| author | click <none@none> | 2010-05-02 16:19:38 +0200 |
|---|---|---|
| committer | click <none@none> | 2010-05-02 16:19:38 +0200 |
| commit | e0cce6984c3e8eef9c68a9e551e253e0737959b1 (patch) | |
| tree | 5e8c81c02f9355e7d172d815f08cc5602e3637fe /src | |
| parent | 5ebee9fbd05bb9bcb9e6db9a66e5c9ad50f60adf (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index a4825e0a070..04c7a14419d 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()) |
