mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Update custom_spells_40.cpp
- removed sapphiron frost aura changes - updated kel thuzad frostbolt volley damage - updated sapphiron icebolt damage
This commit is contained in:
@@ -219,7 +219,7 @@ class spell_kelthuzad_frostbolt_40 : public SpellScript
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SetEffectValue(urand(2500,2600));
|
SetEffectValue(urand(2550,3450));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Register() override
|
void Register() override
|
||||||
@@ -240,7 +240,7 @@ class spell_sapphiron_icebolt_40 : public SpellScript
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SetEffectValue(urand(2625,2900));
|
SetEffectValue(urand(2625,3375));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Register() override
|
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
|
// 29213 - Curse of the Plaguebringer
|
||||||
enum CurseOfThePlaguebringer
|
enum CurseOfThePlaguebringer
|
||||||
@@ -446,7 +411,6 @@ void AddSC_custom_spells_40()
|
|||||||
RegisterSpellScript(spell_kelthuzad_dark_blast_40);
|
RegisterSpellScript(spell_kelthuzad_dark_blast_40);
|
||||||
RegisterSpellScript(spell_kelthuzad_frostbolt_40);
|
RegisterSpellScript(spell_kelthuzad_frostbolt_40);
|
||||||
RegisterSpellScript(spell_sapphiron_icebolt_40);
|
RegisterSpellScript(spell_sapphiron_icebolt_40);
|
||||||
RegisterSpellScript(spell_sapphiron_frost_aura_40);
|
|
||||||
RegisterSpellScript(spell_noth_curse_of_the_plaguebringer_aura_40);
|
RegisterSpellScript(spell_noth_curse_of_the_plaguebringer_aura_40);
|
||||||
RegisterSpellScript(spell_razuvious_disrupting_shout_40);
|
RegisterSpellScript(spell_razuvious_disrupting_shout_40);
|
||||||
RegisterSpellScript(spell_unholy_staff_arcane_explosion_40);
|
RegisterSpellScript(spell_unholy_staff_arcane_explosion_40);
|
||||||
|
|||||||
Reference in New Issue
Block a user