fix(Scripts/Spells): Update Death Knight Ebon Gargoyle auras and damage, and Ghoul auras (#22398)

Co-authored-by: Tereneckla <Tereneckla@pm.me>
This commit is contained in:
Jelle Meeus
2025-07-20 08:10:47 +02:00
committed by GitHub
parent 7c4a5bc37c
commit 53e1cd553b
6 changed files with 93 additions and 19 deletions

View File

@@ -280,17 +280,17 @@ class spell_pet_dk_gargoyle_strike : public SpellScript
void HandleDamageCalc(SpellEffIndex /*effIndex*/)
{
int32 damage = 60;
int32 damage = GetEffectValue();
if (Unit* caster = GetCaster())
if (caster->GetLevel() >= 60)
damage += (caster->GetLevel() - 60) * 4;
damage += (caster->GetLevel() - 60) * 3;
SetEffectValue(damage);
}
void Register() override
{
OnEffectHitTarget += SpellEffectFn(spell_pet_dk_gargoyle_strike::HandleDamageCalc, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
OnEffectLaunchTarget += SpellEffectFn(spell_pet_dk_gargoyle_strike::HandleDamageCalc, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
}
};