Update spell_dk.cpp

This commit is contained in:
Kitzunu
2023-05-31 18:05:17 +02:00
parent 8ad7857104
commit d8eefa6b87

View File

@@ -1715,8 +1715,9 @@ class spell_dk_impurity : public AuraScript
void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/)
{
if (AuraEffect* aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_DEATHKNIGHT, 1986 /*Impurity IconID*/, EFFECT_0))
AddPct(amount, aurEff->GetAmount());
if (Unit* caster = GetCaster())
if (AuraEffect* aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_DEATHKNIGHT, 1986 /*Impurity IconID*/, EFFECT_0))
AddPct(amount, aurEff->GetAmount());
}
void Register() override