mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
committed by
Giacomo Pozzoni
parent
eb7a6391aa
commit
8d1a5fa126
2
sql/updates/world/3.3.5/2019_06_29_00_world.sql
Normal file
2
sql/updates/world/3.3.5/2019_06_29_00_world.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_q12823_remove_collapsing_cave_aura';
|
||||
INSERT INTO `spell_script_names` VALUES (55693,'spell_q12823_remove_collapsing_cave_aura');
|
||||
@@ -3495,11 +3495,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
{
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
case 55693: // Remove Collapsing Cave Aura
|
||||
if (!unitTarget)
|
||||
return;
|
||||
unitTarget->RemoveAurasDueToSpell(m_spellInfo->Effects[effIndex].CalcValue());
|
||||
break;
|
||||
// Brittle Armor - need remove one 24575 Brittle Armor aura
|
||||
case 24590:
|
||||
unitTarget->RemoveAuraFromStack(24575);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user