diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 68ab18a750c..4fff1deeff2 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -243,6 +243,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (32811,'spell_greater_invisibility_mob'), (29339,'spell_healing_touch_horses'), (29340,'spell_whip_frenzy_horses'), +(29521,'spell_dance_vibe'), (29969,'spell_summon_blizzard'), (29970,'spell_dispel_blizzard'), (29979,'spell_massive_magnetic_pull'), diff --git a/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/karazhanScripts.cpp b/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/karazhanScripts.cpp index 2d183de8d8b..67cb3a09929 100644 --- a/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/karazhanScripts.cpp +++ b/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/karazhanScripts.cpp @@ -590,6 +590,19 @@ struct WhipFrenzyHorses : public SpellScript } }; +// 29521 - Dance Vibe +struct DanceVibe : public AuraScript +{ + bool OnAreaAuraCheckTarget(Aura const* aura, Unit* target) const override + { + CreatureGroup const* creatureGroup = static_cast(aura->GetCaster())->GetCreatureGroup(); + + if (creatureGroup && creatureGroup->HasGroupMember(target)) + return true; + return false; + } +}; + void AddSC_karazhan() { Script* pNewScript = new Script; @@ -619,4 +632,5 @@ void AddSC_karazhan() RegisterSpellScript("spell_wrath_of_the_titans_proc_aura"); RegisterSpellScript("spell_healing_touch_horses"); RegisterSpellScript("spell_whip_frenzy_horses"); + RegisterSpellScript("spell_dance_vibe"); }