diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/ObjectMgr.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index a45722449ca..009962e3205 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7849,6 +7849,8 @@ void ObjectMgr::LoadTrainerSpell() barGoLink bar( result->GetRowCount() ); + std::set<uint32> talentIds; + uint32 count = 0; do { @@ -7890,6 +7892,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]; |