Fix Naxx 40 Consumption spell

This commit is contained in:
郑佩茹
2024-05-30 09:57:52 -06:00
parent 751941e07e
commit 2ce9936217
2 changed files with 5 additions and 5 deletions

View File

@@ -5680,7 +5680,7 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
-- upstream handles void zone damage incorrectly. Azerothcore (#18807)
DELETE FROM `spell_script_names` WHERE `spell_id` = 28865;
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(28865,'spell_four_horsemen_consumption');
(28865,'spell_gen_consumption');
DELETE FROM `creature_template_spell` WHERE `CreatureID` = 16697;
UPDATE `creature_template` SET `ScriptName` = '', `AIName` = 'SmartAI' WHERE `entry` = 16697;
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 16697);

View File

@@ -466,9 +466,9 @@ public:
}
};
class spell_four_horsemen_consumption : public SpellScript
class spell_gen_consumption : public SpellScript
{
PrepareSpellScript(spell_four_horsemen_consumption);
PrepareSpellScript(spell_gen_consumption);
void CalculateDamage(SpellEffIndex /*effIndex*/)
{
@@ -505,7 +505,7 @@ class spell_four_horsemen_consumption : public SpellScript
void Register() override
{
OnEffectLaunchTarget += SpellEffectFn(spell_four_horsemen_consumption::CalculateDamage, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
OnEffectLaunchTarget += SpellEffectFn(spell_gen_consumption::CalculateDamage, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
}
};
@@ -513,5 +513,5 @@ void AddSC_boss_four_horsemen_40()
{
new boss_four_horsemen_40();
new spell_four_horsemen_mark();
RegisterSpellScript(spell_four_horsemen_consumption);
RegisterSpellScript(spell_gen_consumption);
}