mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9657] Not include in .list talents disabled spells
Also some more cleanups in free talent points update calls.
This commit is contained in:
parent
034da8f6d4
commit
973a21060b
4 changed files with 7 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue