Skip to content

Commit

Permalink
Karazhan: Implement check to fix dance vibe combat log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jul 3, 2024
1 parent cd68725 commit 03b02fd
Show file tree
Hide file tree
Showing 2 changed files with 15 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 @@ -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'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Creature*>(aura->GetCaster())->GetCreatureGroup();

if (creatureGroup && creatureGroup->HasGroupMember(target))
return true;
return false;
}
};

void AddSC_karazhan()
{
Script* pNewScript = new Script;
Expand Down Expand Up @@ -619,4 +632,5 @@ void AddSC_karazhan()
RegisterSpellScript<WrathOfTheTitansProcAura>("spell_wrath_of_the_titans_proc_aura");
RegisterSpellScript<HealingTouchHorses>("spell_healing_touch_horses");
RegisterSpellScript<WhipFrenzyHorses>("spell_whip_frenzy_horses");
RegisterSpellScript<DanceVibe>("spell_dance_vibe");
}

0 comments on commit 03b02fd

Please sign in to comment.