*Use prev_spell data calculated on startup instead of sql column.
*Changed map structure of req spell. *Added precalculated data for next spell in rank and last one. *Removed duplicated rank entries for some spells and used req_spell column instead. *Allow required spell to have required spell. --HG-- branch : trunk
This commit is contained in:
1 parent
9948e98703
commit
42d52c1e17
5 files changed
+207
-88
No files matched your search
+8
-4
@@ -1769,12 +1769,16 @@ bool ChatHandler::HandleLearnAllMySpellsCommand(const char* /*args*/)
|
||||
|
||||
static void learnAllHighRanks(Player* player, uint32 spellid)
|
||||
{
|
||||
SpellChainMapNext const& nextMap = spellmgr.GetSpellChainNext();
|
||||
for(SpellChainMapNext::const_iterator itr = nextMap.lower_bound(spellid); itr != nextMap.upper_bound(spellid); ++itr)
|
||||
SpellChainNode const* node;
|
||||
do
|
||||
{
|
||||
player->learnSpell(itr->second);
|
||||
learnAllHighRanks(player,itr->second);
|
||||
node = spellmgr.GetSpellChainNode(spellid);
|
||||
player->learnSpell(spellid);
|
||||
if (!node)
|
||||
break;
|
||||
spellid=node->next;
|
||||
}
|
||||
while (node->next);
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleLearnAllMyTalentsCommand(const char* /*args*/)
|
||||
|
||||
Reference in new issue
Block a user