From f811aeb8b68c3415ed279ae479d3406dd4a3685b Mon Sep 17 00:00:00 2001 From: Grz3s Date: Mon, 30 Sep 2024 22:13:13 +0200 Subject: [PATCH] Spell: 25730 - Find the Ancient Hero - Fixed Summon will follow Player --- sql/scriptdev2/spell.sql | 1 + src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 294a215f455..1e0640de1f4 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -636,6 +636,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (16836,'spell_brambles'), (16839,'spell_brambles'), (16840,'spell_brambles'), +(25730,'spell_find_the_ancient_hero'), (27892,'spell_to_anchor_one'), (27893,'spell_to_anchor_two'), (27896,'spell_choose_random_skull_pile'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 7804df30350..2d0a3e0b490 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1254,6 +1254,15 @@ struct RapidFireHarpoon : public SpellScript } }; +// 25730 - Find the Ancient Hero: The Bone Witch's Amulet Effect +struct FindtheAncientHero : public SpellScript +{ + void OnSummon(Spell* spell, Creature* summon) const override + { + summon->GetMotionMaster()->MoveFollow(spell->GetCaster(), PET_FOLLOW_DIST, PET_FOLLOW_ANGLE, true); + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1305,4 +1314,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_burning"); RegisterSpellScript("spell_infragreenshield"); RegisterSpellScript("spell_rapid_fire_harpoon"); + RegisterSpellScript("spell_find_the_ancient_hero"); }