Skip to content

Commit

Permalink
Spell: 59288 - Infra-Green Shield
Browse files Browse the repository at this point in the history
fixed
  • Loading branch information
Grz3s authored and killerwife committed Sep 7, 2024
1 parent 3d9102d commit 8186350
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
11 changes: 11 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1281,4 +1291,5 @@ void AddSC_icecrown()
RegisterSpellScript<AlumethsRemains>("spell_alumeths_remains");
RegisterSpellScript<FireSGM3>("spell_fire_sgm3");
RegisterSpellScript<Burning>("spell_burning");
RegisterSpellScript<InfraGreenShield>("spell_infragreenshield");
}

0 comments on commit 8186350

Please sign in to comment.