mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Fix Naxx 40 Consumption spell
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user