Core/Talents: Update talent system, remove talent points

This commit is contained in:
Intel
2014-11-10 21:09:18 +02:00
parent e90ef4fa24
commit 24850994b4
28 changed files with 314 additions and 798 deletions

View File

@@ -128,7 +128,7 @@ void CharacterDatabaseCleaner::CleanCharacterSkills()
bool CharacterDatabaseCleaner::SpellCheck(uint32 spell_id)
{
return sSpellMgr->GetSpellInfo(spell_id) && !GetTalentSpellPos(spell_id);
return sSpellMgr->GetSpellInfo(spell_id) && GetTalentBySpellID(spell_id) != nullptr;
}
void CharacterDatabaseCleaner::CleanCharacterSpell()
@@ -142,7 +142,7 @@ bool CharacterDatabaseCleaner::TalentCheck(uint32 talent_id)
if (!talentInfo)
return false;
return sTalentTabStore.LookupEntry(talentInfo->TalentTab) != nullptr;
return sChrSpecializationStore.LookupEntry(talentInfo->SpecID) != nullptr;
}
void CharacterDatabaseCleaner::CleanCharacterTalent()