The Botanica - Arcane Devastation should always remove Arcane Resonance (#672)

* The Botanica - Arcane Devastation should always remove Arcane Resonance

This spell gets used by Commander Sarannis

* typo

* more typo
pull/673/head
_daanieL 2 months ago committed by GitHub
parent 2e05b5c28c
commit 1626889146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -654,7 +654,8 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(34292,'spell_increased_spell_damage_done_dummy'),
(28695,'spell_gameobject_call_for_help_on_usage'), -- Herb Gathering (Master)
(29354,'spell_gameobject_call_for_help_on_usage'), -- Mining (Master)
(30434,'spell_gameobject_call_for_help_on_usage'); -- Elemental Seaforium Charge
(30434,'spell_gameobject_call_for_help_on_usage'), -- Elemental Seaforium Charge
(34799,'spell_arcane_devastation');
-- Wotlk
INSERT INTO spell_scripts(Id, ScriptName) VALUES

@ -125,6 +125,21 @@ void instance_botanica::Update(const uint32 diff)
{
UpdateTimers(diff);
}
// 34799 ArcaneDevastation
enum Spells
{
SPELL_ARCANE_RESONANCE = 34794,
};
struct ArcaneDevastation : public SpellScript
{
void OnAfterHit(Spell* spell) const override
{
Unit* target = spell->m_targets.getUnitTarget();
target->RemoveAurasDueToSpell(SPELL_ARCANE_RESONANCE);
return;
}
};
void AddSC_instance_botanica()
{
@ -132,4 +147,6 @@ void AddSC_instance_botanica()
pNewScript->Name = "instance_botanica";
pNewScript->GetInstanceData = &GetNewInstanceScript<instance_botanica>;
pNewScript->RegisterSelf();
RegisterSpellScript<ArcaneDevastation>("spell_arcane_devastation");
}

Loading…
Cancel
Save