mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Merge pull request #520 from Grimfeather/naxx40-spell-changes
Naxx40 spell changes
This commit is contained in:
@@ -61,7 +61,7 @@ INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (28522, 'spel
|
||||
|
||||
-- 28531 Frost Aura 1200->600
|
||||
DELETE FROM `spell_script_names` WHERE `spell_id` = 28531;
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (28531, 'spell_sapphiron_frost_aura_40');
|
||||
-- INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (28531, 'spell_sapphiron_frost_aura_40');
|
||||
|
||||
-- Anub'Arak
|
||||
-- Locust Swarm: Reduce damage ~1500 to ~1000, increase radius 25yd to 30yd
|
||||
|
||||
@@ -219,7 +219,7 @@ class spell_kelthuzad_frostbolt_40 : public SpellScript
|
||||
{
|
||||
return;
|
||||
}
|
||||
SetEffectValue(urand(2500,2600));
|
||||
SetEffectValue(urand(2550,3450));
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -240,7 +240,7 @@ class spell_sapphiron_icebolt_40 : public SpellScript
|
||||
{
|
||||
return;
|
||||
}
|
||||
SetEffectValue(urand(2625,2900));
|
||||
SetEffectValue(urand(2625,3375));
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -249,41 +249,6 @@ class spell_sapphiron_icebolt_40 : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 28531 - Frost Aura
|
||||
enum FrostAura
|
||||
{
|
||||
SPELL_FROST_AURA = 28531,
|
||||
};
|
||||
|
||||
class spell_sapphiron_frost_aura_40 : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_sapphiron_frost_aura_40);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_FROST_AURA });
|
||||
}
|
||||
|
||||
void HandleTriggerSpell(AuraEffect const* /*aurEff*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster || (caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_10MAN_HEROIC))
|
||||
{
|
||||
return;
|
||||
}
|
||||
PreventDefaultAction();
|
||||
int32 modifiedFrostAuraDamage = 600;
|
||||
CustomSpellValues values;
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT0, modifiedFrostAuraDamage);
|
||||
caster->CastCustomSpell(SPELL_FROST_AURA, values, caster, TRIGGERED_NONE, nullptr, nullptr, GetCasterGUID());
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectPeriodic += AuraEffectPeriodicFn(spell_sapphiron_frost_aura_40::HandleTriggerSpell, EFFECT_0, 3);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// 29213 - Curse of the Plaguebringer
|
||||
enum CurseOfThePlaguebringer
|
||||
@@ -446,7 +411,6 @@ void AddSC_custom_spells_40()
|
||||
RegisterSpellScript(spell_kelthuzad_dark_blast_40);
|
||||
RegisterSpellScript(spell_kelthuzad_frostbolt_40);
|
||||
RegisterSpellScript(spell_sapphiron_icebolt_40);
|
||||
RegisterSpellScript(spell_sapphiron_frost_aura_40);
|
||||
RegisterSpellScript(spell_noth_curse_of_the_plaguebringer_aura_40);
|
||||
RegisterSpellScript(spell_razuvious_disrupting_shout_40);
|
||||
RegisterSpellScript(spell_unholy_staff_arcane_explosion_40);
|
||||
|
||||
Reference in New Issue
Block a user