mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Update custom_spells_40.cpp
This commit is contained in:
@@ -249,6 +249,40 @@ 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 = 599;
|
||||
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, SPELL_AURA_PERIODIC_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
// 29213 - Curse of the Plaguebringer
|
||||
enum CurseOfThePlaguebringer
|
||||
@@ -324,6 +358,7 @@ class spell_razuvious_disrupting_shout_40 : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 28450 Unholy Staff
|
||||
class spell_unholy_staff_arcane_explosion_40 : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_unholy_staff_arcane_explosion_40);
|
||||
@@ -354,6 +389,7 @@ class spell_unholy_staff_arcane_explosion_40 : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 28153 Disease cloud, Sewage Slime
|
||||
class spell_disease_cloud_damage_40 : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_disease_cloud_damage_40);
|
||||
@@ -374,7 +410,7 @@ class spell_disease_cloud_damage_40 : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// 28135 Static Field
|
||||
class spell_feugen_static_field_40 : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_feugen_static_field_40);
|
||||
@@ -411,6 +447,7 @@ 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