diff options
author | QAston <none@none> | 2009-07-31 13:21:01 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-31 13:21:01 +0200 |
commit | 1f53433c6c4de01709410581ba644be7e6aaf6fe (patch) | |
tree | 82ef56f79191af1e702dcfd9ab8dbd3c57f97ed9 /src/game/Player.cpp | |
parent | 2bddcc4303060a42e88a0478005c3c0368e3569a (diff) |
Backed out changeset "[8251] Store in some DB tables only data for first rank. Author: VladimirMangos" until support for different values for ranks and for custom ranks is added.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 6c7fb40c3fa..d610031da00 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20563,19 +20563,12 @@ bool Player::IsAllowUseFlyMountsHere() const return v_map == 530 || v_map == 571 && HasSpell(54197) && zoneId != 4197; } -struct DoPlayerLearnSpell -{ - DoPlayerLearnSpell(Player& _player) : player(_player) {} - void operator() (uint32 spell_id) { player.learnSpell(spell_id,false); } - Player& player; -}; - void Player::learnSpellHighRank(uint32 spellid) { learnSpell(spellid,false); - DoPlayerLearnSpell worker(*this); - spellmgr.doForHighRanks(spellid,worker); + if(uint32 next = spellmgr.GetNextSpellInChain(spellid)) + learnSpellHighRank(next); } void Player::_LoadSkills() |