aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2022-06-22 22:37:52 +0300
committerGitHub <noreply@github.com>2022-06-22 22:37:52 +0300
commit3808e614d9760a2588fec0c1b0b4c30feda36dcc (patch)
treed784e9226c539c479cef16273cb38574f9a433e9 /src/server/scripts/EasternKingdoms
parentffcc976524e3b1ba99023e40e7fc9cce4d01a2f7 (diff)
Scripts/Spells: Get rid of several DB spell scripts (#28048)
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_brutallus.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_brutallus.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_brutallus.cpp
index ee0104f9b0f..09aff3b741f 100644
--- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_brutallus.cpp
+++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_brutallus.cpp
@@ -362,8 +362,30 @@ class spell_brutallus_burn : public AuraScript
}
};
+// 45185 - Stomp
+class spell_brutallus_stomp : public SpellScript
+{
+ PrepareSpellScript(spell_brutallus_stomp);
+
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_BURN });
+ }
+
+ void HandleScript(SpellEffIndex /*effIndex*/)
+ {
+ GetHitUnit()->RemoveAurasDueToSpell(SPELL_BURN);
+ }
+
+ void Register() override
+ {
+ OnEffectHitTarget += SpellEffectFn(spell_brutallus_stomp::HandleScript, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT);
+ }
+};
+
void AddSC_boss_brutallus()
{
new boss_brutallus();
RegisterSpellScript(spell_brutallus_burn);
+ RegisterSpellScript(spell_brutallus_stomp);
}