Skip to content

Commit

Permalink
ZulDrak: Spell 51671 - Ghostly
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s authored and killerwife committed Nov 18, 2022
1 parent cf10698 commit 69d9f46
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 @@ -626,6 +626,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(51511,'spell_toss_ice_boulder'),
(51590,'spell_toss_ice_boulder'),
(51519,'spell_death_knight_initiate_visual'),
(51671,'spell_ghostly'),
(51769,'spell_emblazon_runeblade_aura'),
(51770,'spell_emblazon_runeblade'),
(51774,'spell_taunt_brann'),
Expand Down
10 changes: 10 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/zuldrak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,15 @@ struct TossIceBoulder : public SpellScript
}
};

// 51671 - Ghostly
struct Ghostly : public SpellScript
{
void OnCast(Spell* spell) const override
{
spell->GetCaster()->CastSpell(nullptr, 51717, TRIGGERED_OLD_TRIGGERED);
}
};

void AddSC_zuldrak()
{
Script* pNewScript = new Script;
Expand Down Expand Up @@ -914,4 +923,5 @@ void AddSC_zuldrak()
RegisterSpellScript<PotCheck>("spell_pot_check");
RegisterSpellScript<FetchAlchemistsApprentice>("spell_fetch_alchemists_apprentice");
RegisterSpellScript<TossIceBoulder>("spell_toss_ice_boulder");
RegisterSpellScript<Ghostly>("spell_ghostly");
}

0 comments on commit 69d9f46

Please sign in to comment.