[9657] Not include in .list talents disabled spells

Also some more cleanups in free talent points update calls.
This commit is contained in:
VladimirMangos 2010-04-02 18:29:03 +04:00
parent 034da8f6d4
commit 973a21060b
4 changed files with 7 additions and 11 deletions

View file

@ -4368,7 +4368,7 @@ bool ChatHandler::HandleListTalentsCommand (const char * /*args*/)
PlayerSpellMap const& uSpells = player->GetSpellMap();
for (PlayerSpellMap::const_iterator itr = uSpells.begin(); itr != uSpells.end(); ++itr)
{
if (itr->second.state == PLAYERSPELL_REMOVED)
if (itr->second.state == PLAYERSPELL_REMOVED || itr->second.disabled)
continue;
uint32 cost_itr = GetTalentSpellCost(itr->first);