mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Spells): Shriveling Gaze (#15939)
* fix(Core/Spells): Shriveling Gaze * comment out unused parameter * again
This commit is contained in:
@@ -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');
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user