Skip to content

Commit

Permalink
Spell: 25730 - Find the Ancient Hero - Fixed
Browse files Browse the repository at this point in the history
Summon will follow Player
  • Loading branch information
Grz3s committed Sep 30, 2024
1 parent 1b653c1 commit f811aeb
Show file tree
Hide file tree
Showing 2 changed files with 11 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 @@ -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'),
Expand Down
10 changes: 10 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1305,4 +1314,5 @@ void AddSC_icecrown()
RegisterSpellScript<Burning>("spell_burning");
RegisterSpellScript<InfraGreenShield>("spell_infragreenshield");
RegisterSpellScript<RapidFireHarpoon>("spell_rapid_fire_harpoon");
RegisterSpellScript<FindtheAncientHero>("spell_find_the_ancient_hero");
}

0 comments on commit f811aeb

Please sign in to comment.