Skip to content

Commit

Permalink
Icecrown: Target corrected for Spell 57853
Browse files Browse the repository at this point in the history
fixed
  • Loading branch information
Grz3s authored and killerwife committed Oct 23, 2024
1 parent 074e130 commit 7ab725c
Show file tree
Hide file tree
Showing 2 changed files with 12 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 @@ -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'),
Expand Down
11 changes: 11 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1315,4 +1325,5 @@ void AddSC_icecrown()
RegisterSpellScript<InfraGreenShield>("spell_infragreenshield");
RegisterSpellScript<RapidFireHarpoon>("spell_rapid_fire_harpoon");
RegisterSpellScript<FindtheAncientHero>("spell_find_the_ancient_hero");
RegisterSpellScript<MasterSummonersStaff>("spell_master_summoners_staff");
}

0 comments on commit 7ab725c

Please sign in to comment.