Core/Spells: fixed several special damage calculations for class spells and fixed a duplicate application of mastery

This commit is contained in:
Ovahlord committed 2025-06-09 11:08:43 +02:00
1 parent 6f39a57ad3
commit 4ccfe1ebed
6 files changed
+168 -145

No files matched your search

+5 -2
View File
@@ -1456,9 +1456,12 @@ class spell_dk_disease : public AuraScript
}
// According to tooltip: ($m1*1.15+$AP*0.055*1.15)
void CalculateDamage(AuraEffect const* /*aurEff*/, Unit* /*victim*/, int32& damage, int32& /*flatMod*/, float& /*pctMod*/)
void CalculateDamage(AuraEffect const* /*aurEff*/, Unit* /*victim*/, int32& damage, int32& flatMod, float& /*pctMod*/)
{
damage = damage * 1.15f + GetCaster()->GetTotalAttackPowerValue(BASE_ATTACK) * 0.055f * 1.15f;
damage *= 1.15f;
if (Unit* caster = GetCaster())
flatMod = caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.055f * 1.15f;
}
void HandleResilientInfection(DispelInfo* /*dispelInfo*/)