fix(Script/Spells): Move some DK and Druid to spellscripts
Co-Authored-By: joschiwald <736792+joschiwald@users.noreply.github.com>
This commit is contained in:
@@ -1708,6 +1708,23 @@ class spell_dk_improved_unholy_presence : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
// -49220 - Impurity
|
||||
class spell_dk_impurity : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_dk_impurity);
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_dk_impurity::CalculateAmount, EFFECT_0, SPELL_EFFECT_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
// 50842 - Pestilence
|
||||
class spell_dk_pestilence : public SpellScript
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user