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
+4 -4
View File
@@ -526,16 +526,16 @@ void Player::UpdateMastery()
value += GetRatingBonusValue(CR_MASTERY);
SetFloatValue(PLAYER_MASTERY, value);
TalentTabEntry const* talentTab = sTalentTabStore.LookupEntry(GetPrimaryTalentTree(GetActiveSpec()));
if (!talentTab)
ChrSpecializationEntry const* chrSpec = sChrSpecializationStore.LookupEntry(GetTalentSpec(GetActiveSpec()));
if (!chrSpec)
return;
for (uint32 i = 0; i < MAX_MASTERY_SPELLS; ++i)
{
if (!talentTab->MasterySpellId[i])
if (!chrSpec->MasterySpellID[i])
continue;
if (Aura* aura = GetAura(talentTab->MasterySpellId[i]))
if (Aura* aura = GetAura(chrSpec->MasterySpellID[i]))
{
for (uint32 j = 0; j < MAX_SPELL_EFFECTS; ++j)
{