mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Kel'Thuzad: dark blast damage scaling
This commit is contained in:
@@ -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()
|
void AddSC_boss_kelthuzad_40()
|
||||||
{
|
{
|
||||||
new boss_kelthuzad_40();
|
new boss_kelthuzad_40();
|
||||||
new boss_kelthuzad_minion_40();
|
new boss_kelthuzad_minion_40();
|
||||||
// new spell_kelthuzad_frost_blast();
|
// new spell_kelthuzad_frost_blast();
|
||||||
// new spell_kelthuzad_detonate_mana();
|
// new spell_kelthuzad_detonate_mana();
|
||||||
|
RegisterSpellScript(spell_kelthuzad_dark_blast);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user