diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 7edb46c5489..2573039d4d4 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -926,6 +926,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (59860,'spell_summon_iron_dwarf_aura'), (59906,'spell_swift_hand_of_justice'), (59915,'spell_discerning_eye_of_the_beast'), +(60079,'spell_fire_sgm3'), (60211,'spell_cauterize'), (60528,'spell_rod_of_siphoning'), (60539,'spell_sapphiron_achievement_check'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index d8ba997e9ad..a909e24e8df 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1179,6 +1179,19 @@ struct AlumethsRemains : public AuraScript } }; +// 60079 - Fire SGM-3 +struct FireSGM3 : public SpellScript +{ + SpellCastResult OnCheckCast(Spell* spell, bool /*strict*/) const override + { + Unit* target = spell->m_targets.getUnitTarget(); + if (!target || target->GetEntry() != 32189) + return SPELL_FAILED_BAD_TARGETS; + + return SPELL_CAST_OK; + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1226,4 +1239,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_rod_of_siphoning"); RegisterSpellScript("spell_summon_dark_messenger_beam"); RegisterSpellScript("spell_alumeths_remains"); + RegisterSpellScript("spell_fire_sgm3"); }