fix(Core/Spells): Demonic Knowledge missing 1% per rank (#17495)

This commit is contained in:
avarishd
2023-10-19 01:21:46 +03:00
committed by GitHub
parent 12189ffc4b
commit a39175bc3b
3 changed files with 9 additions and 3 deletions

View File

@@ -243,6 +243,7 @@ class spell_warl_demonic_aegis : public AuraScript
}
};
// -35696 - Demonic Knowledge
class spell_warl_demonic_knowledge : public AuraScript
{
PrepareAuraScript(spell_warl_demonic_knowledge);
@@ -250,7 +251,10 @@ class spell_warl_demonic_knowledge : public AuraScript
void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/)
{
if (Unit* caster = GetCaster())
amount = CalculatePct(caster->GetStat(STAT_STAMINA) + caster->GetStat(STAT_INTELLECT), aurEff->GetBaseAmount());
{
uint8 pct = aurEff->GetBaseAmount() + aurEff->GetDieSides();
amount = CalculatePct(caster->GetStat(STAT_STAMINA) + caster->GetStat(STAT_INTELLECT), pct);
}
}
void CalcPeriodic(AuraEffect const* /*aurEff*/, bool& isPeriodic, int32& amplitude)