Kel'Thuzad: dark blast damage scaling

This commit is contained in:
Jelle Meeus
2024-05-01 00:56:24 +02:00
parent 678f4897ee
commit 81d0133a51

View File

@@ -741,10 +741,32 @@ public:
}
};
class spell_kelthuzad_dark_blast : public SpellScript
{
PrepareSpellScript(spell_kelthuzad_dark_blast);
void CalculateDamage(SpellEffIndex /*effIndex*/)
{
Unit* caster = GetCaster();
if (!caster || (caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_10MAN_HEROIC))
{
return;
}
SetEffectValue(urand(1750,2250));
}
void Register() override
{
OnEffectLaunchTarget += SpellEffectFn(spell_kelthuzad_dark_blast::CalculateDamage, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
}
};
void AddSC_boss_kelthuzad_40()
{
new boss_kelthuzad_40();
new boss_kelthuzad_minion_40();
// new spell_kelthuzad_frost_blast();
// new spell_kelthuzad_detonate_mana();
RegisterSpellScript(spell_kelthuzad_dark_blast);
}