From 7ab725cb7d5870d66c8c61d7f1ccb9cc623c8dce Mon Sep 17 00:00:00 2001 From: Grz3s Date: Mon, 21 Oct 2024 02:33:46 +0200 Subject: [PATCH] Icecrown: Target corrected for Spell 57853 fixed --- sql/scriptdev2/spell.sql | 1 + .../AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 25d9724dede..2023edcd611 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -911,6 +911,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (57666,'spell_frozen_siegebolt'), (57667,'spell_frozen_siegebolt'), (57669,'spell_replenishment'), +(57853,'spell_master_summoners_staff'), (58418,'spell_portal_to_capital_city'), (58420,'spell_portal_to_capital_city'), (58984,'spell_shadowmeld'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 2d0a3e0b490..50992dad100 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1263,6 +1263,16 @@ struct FindtheAncientHero : public SpellScript } }; +// 57853 - Master Summoner's Staff +struct MasterSummonersStaff : public SpellScript, public AuraScript +{ + void OnPeriodicTrigger(Aura* aura, PeriodicTriggerData& data) const override + { + data.caster = aura->GetCaster(); + data.target = nullptr; + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1315,4 +1325,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_infragreenshield"); RegisterSpellScript("spell_rapid_fire_harpoon"); RegisterSpellScript("spell_find_the_ancient_hero"); + RegisterSpellScript("spell_master_summoners_staff"); }