fix(Scripts/BlackTemple): L5 Arcane Charge should be modified by dama… (#19730)

* fix(Scripts/BlackTemple): L5 Arcane Charge should be modified by damage taken mods

* Create rev_1724540286668312700.sql

* Update spell_generic.cpp

* update to new format
This commit is contained in:
Andrew
2024-08-26 01:25:10 -03:00
committed by GitHub
parent 4fcc7d9085
commit 52cd493ad8
3 changed files with 21 additions and 2 deletions

View File

@@ -486,6 +486,22 @@ class spell_black_temple_summon_shadowfiends : public SpellScript
}
};
class spell_black_temple_l5_arcane_charge : public SpellScript
{
PrepareSpellScript(spell_black_temple_l5_arcane_charge)
void RecalculateDamage()
{
uint32 damage = GetHitUnit()->SpellDamageBonusTaken(GetCaster(), GetSpellInfo(), GetHitUnit()->CountPctFromMaxHealth(100), SPELL_DIRECT_DAMAGE);
SetHitDamage(int32(damage));
}
void Register() override
{
OnHit += SpellHitFn(spell_black_temple_l5_arcane_charge::RecalculateDamage);
}
};
void AddSC_instance_black_temple()
{
new instance_black_temple();
@@ -502,4 +518,5 @@ void AddSC_instance_black_temple()
RegisterSpellScript(spell_black_temple_curse_of_vitality_aura);
RegisterSpellScript(spell_black_temple_dementia_aura);
RegisterSpellScript(spell_black_temple_summon_shadowfiends);
RegisterSpellScript(spell_black_temple_l5_arcane_charge);
}