mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/Spell): properly script collapsing cave aura (#10092)
* cherry-pick commit (8d1a5fa126)
Co-authored-by: Sorikoff <46191832+Sorikoff@users.noreply.github.com>
This commit is contained in:
@@ -1067,21 +1067,40 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
enum CollapsingCave
|
||||
{
|
||||
SPELL_COLLAPSING_CAVE = 55486
|
||||
};
|
||||
|
||||
// 55693 - Remove Collapsing Cave Aura
|
||||
class spell_q12823_remove_collapsing_cave_aura : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_q12823_remove_collapsing_cave_aura);
|
||||
|
||||
void HandleScriptEffect(SpellEffIndex /* effIndex */)
|
||||
{
|
||||
GetHitUnit()->RemoveAurasDueToSpell(SPELL_COLLAPSING_CAVE);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_q12823_remove_collapsing_cave_aura::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_storm_peaks()
|
||||
{
|
||||
// Ours
|
||||
new npc_frosthound();
|
||||
new npc_iron_watcher();
|
||||
new npc_time_lost_proto_drake();
|
||||
new npc_wild_wyrm();
|
||||
new spell_q13003_thursting_hodirs_spear();
|
||||
new spell_q13007_iron_colossus();
|
||||
|
||||
// Theirs
|
||||
new npc_roxi_ramrocket();
|
||||
new npc_brunnhildar_prisoner();
|
||||
new npc_freed_protodrake();
|
||||
new npc_icefang();
|
||||
new npc_hyldsmeet_protodrake();
|
||||
new spell_close_rift();
|
||||
RegisterSpellScript(spell_q12823_remove_collapsing_cave_aura);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user