Skip to content

Commit

Permalink
Spell: 60079 set correct target
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s authored and killerwife committed Aug 10, 2024
1 parent b0d09a1 commit 62885d4
Show file tree
Hide file tree
Showing 2 changed files with 15 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 @@ -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'),
Expand Down
14 changes: 14 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1226,4 +1239,5 @@ void AddSC_icecrown()
RegisterSpellScript<RodOfSiphoning>("spell_rod_of_siphoning");
RegisterSpellScript<SummonDarkMessengerBeam>("spell_summon_dark_messenger_beam");
RegisterSpellScript<AlumethsRemains>("spell_alumeths_remains");
RegisterSpellScript<FireSGM3>("spell_fire_sgm3");
}

0 comments on commit 62885d4

Please sign in to comment.