Core/Player: removed manual mastery aura amount calculation as it's already done within the spell effect amount

This commit is contained in:
Ovahlord committed 2025-06-14 16:22:03 +02:00
1 parent 6a3ac4e8df
commit eceecac7c5
1 file changed
+4 -11
+4 -11
View File
@@ -684,24 +684,17 @@ void Player::UpdateMastery()
if (!talentTab)
return;
for (uint32 i = 0; i < MAX_MASTERY_SPELLS; ++i)
for (uint8 i = 0; i < MAX_MASTERY_SPELLS; ++i)
{
if (!talentTab->MasterySpellID[i])
continue;
if (Aura* aura = GetAura(talentTab->MasterySpellID[i]))
{
for (uint32 j = 0; j < MAX_SPELL_EFFECTS; ++j)
{
if (!aura->HasEffect(j))
continue;
if (!aura->GetSpellInfo()->HasAttribute(SPELL_ATTR8_MASTERY_AFFECTS_POINTS))
continue;
float mult = aura->GetSpellInfo()->Effects[j].BonusMultiplier;
if (G3D::fuzzyEq(mult, 0.0f))
continue;
aura->GetEffect(j)->ChangeAmount(int32(value * aura->GetSpellInfo()->Effects[j].BonusMultiplier));
}
aura->RecalculateAmountOfEffects();
}
}
}