diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 0b4415f78df..a021d5bc068 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -913,6 +913,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (58420,'spell_portal_to_capital_city'), (58984,'spell_shadowmeld'), (59275,'spell_summon_gauntlet_mobs_periodic_aura'), +(59288,'spell_infragreenshield'), (59303,'spell_summon_frost_wyrm'), (59317,'spell_teleporting_dalaran'), (59331,'spell_poisoned_spear'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 059062bae5a..0a8269e6e9a 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1232,6 +1232,16 @@ struct Burning : public AuraScript } }; +// 59288 - Infra-Green Shield +struct InfraGreenShield : public AuraScript +{ + void OnPeriodicTickEnd(Aura* aura) const override + { + Unit* caster = aura->GetCaster(); + caster->RemoveAuraStack(59288); + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1281,4 +1291,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_alumeths_remains"); RegisterSpellScript("spell_fire_sgm3"); RegisterSpellScript("spell_burning"); + RegisterSpellScript("spell_infragreenshield"); }