mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Spells): Demonic Knowledge missing 1% per rank (#17495)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user