mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8039] Prevent including talents to trainer data, report at server loading.
This commit is contained in:
parent
0e20fbbd56
commit
23c96493b1
2 changed files with 13 additions and 1 deletions
|
|
@ -7366,6 +7366,8 @@ void ObjectMgr::LoadTrainerSpell()
|
|||
|
||||
barGoLink bar( result->GetRowCount() );
|
||||
|
||||
std::set<uint32> talentIds;
|
||||
|
||||
uint32 count = 0;
|
||||
do
|
||||
{
|
||||
|
|
@ -7407,6 +7409,16 @@ void ObjectMgr::LoadTrainerSpell()
|
|||
continue;
|
||||
}
|
||||
|
||||
if(GetTalentSpellCost(spell))
|
||||
{
|
||||
if(talentIds.count(spell)==0)
|
||||
{
|
||||
sLog.outErrorDb("Table `npc_trainer` has talent as learning spell %u, ignore", spell);
|
||||
talentIds.insert(spell);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
TrainerSpellData& data = m_mCacheTrainerSpellMap[entry];
|
||||
|
||||
TrainerSpell& trainerSpell = data.spellList[spell];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue