Scripts/Spells: Remove Collapsing Cave Aura (#23533)

* Scripts/Spells: Remove Collapsing Cave Aura

* Rename 9999_99_99_99_world.sql to 2019_06_29_00_world.sql
This commit is contained in:
Sorikoff
2019-06-29 11:35:11 +00:00
committed by Giacomo Pozzoni
parent eb7a6391aa
commit 8d1a5fa126
3 changed files with 24 additions and 5 deletions

View File

@@ -1436,6 +1436,27 @@ class spell_player_mount_wyrm : public SpellScriptLoader
}
};
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()
{
new npc_injured_goblin();
@@ -1461,4 +1482,5 @@ void AddSC_storm_peaks()
new spell_fatal_strike();
new spell_falling_dragon_feign_death();
new spell_player_mount_wyrm();
RegisterSpellScript(spell_q12823_remove_collapsing_cave_aura);
}