fix(Core/Spells): Shriveling Gaze (#15939)

* fix(Core/Spells): Shriveling Gaze

* comment out unused parameter

* again
This commit is contained in:
avarishd
2023-07-08 16:03:03 +03:00
committed by GitHub
parent 2e7003d84e
commit 998bb9d54b
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
-- Shriveling Gaze
DELETE FROM `spell_script_names` WHERE `spell_id` = 37589;
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(37589,'spell_gen_shriveling_gaze');

View File

@@ -4814,6 +4814,7 @@ class spell_freezing_circle : public SpellScript
}
};
// 35385 - Threshalisk Charge
enum Threshalisk
{
SPELL_THRESHALISK_CHARGE = 35385,
@@ -4849,6 +4850,40 @@ class spell_gen_threshalisk_charge : public SpellScript
}
};
// 37589 - Shriveling Gaze
enum ShrivelingGaze
{
SPELL_SHRIVELING_GAZE = 37589,
SPELL_SHRIVELING_GAZE_REMOVAL = 30023, // Serverside - Gushing Wound Removal
};
class spell_gen_shriveling_gaze : public AuraScript
{
PrepareAuraScript(spell_gen_shriveling_gaze);
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ SPELL_SHRIVELING_GAZE });
}
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
ModStackAmount(20);
}
void OnPeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
ModStackAmount(-1);
}
void Register() override
{
OnEffectApply += AuraEffectApplyFn(spell_gen_shriveling_gaze::HandleApply, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL, AURA_EFFECT_HANDLE_REAL);
OnEffectPeriodic += AuraEffectPeriodicFn(spell_gen_shriveling_gaze::OnPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
}
};
void AddSC_generic_spell_scripts()
{
RegisterSpellScript(spell_silithyst);
@@ -4993,4 +5028,5 @@ void AddSC_generic_spell_scripts()
RegisterSpellScript(spell_gen_basic_campfire);
RegisterSpellScript(spell_freezing_circle);
RegisterSpellScript(spell_gen_threshalisk_charge);
RegisterSpellScript(spell_gen_shriveling_gaze);
}