mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
DB/Quest: Take Down Tethyr!
Closes #22407
(cherry picked from commit c22b1e6cb4)
This commit is contained in:
@@ -4308,6 +4308,35 @@ class spell_gen_charmed_unit_spell_cooldown : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
enum CannonBlast
|
||||
{
|
||||
SPELL_CANNON_BLAST = 42578,
|
||||
SPELL_CANNON_BLAST_DAMAGE = 42576
|
||||
};
|
||||
|
||||
class spell_gen_cannon_blast : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_cannon_blast);
|
||||
|
||||
bool Validate(SpellInfo const* spellInfo) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_CANNON_BLAST });
|
||||
}
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
int32 bp = GetEffectValue();
|
||||
Unit* target = GetHitUnit();
|
||||
CastSpellExtraArgs args(TRIGGERED_FULL_MASK);
|
||||
args.AddSpellBP0(bp);
|
||||
target->CastSpell(target, SPELL_CANNON_BLAST_DAMAGE, args);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_gen_cannon_blast::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
// 169869 - Transformation Sickness
|
||||
class spell_gen_decimatus_transformation_sickness : public SpellScript
|
||||
{
|
||||
@@ -4680,6 +4709,7 @@ void AddSC_generic_spell_scripts()
|
||||
RegisterAuraScript(spell_gen_vehicle_control_link);
|
||||
RegisterSpellScript(spell_freezing_circle);
|
||||
RegisterSpellScript(spell_gen_charmed_unit_spell_cooldown);
|
||||
RegisterSpellScript(spell_gen_cannon_blast);
|
||||
RegisterSpellScript(spell_gen_decimatus_transformation_sickness);
|
||||
RegisterSpellScript(spell_gen_anetheron_summon_towering_infernal);
|
||||
RegisterSpellAndAuraScriptPair(spell_gen_mark_of_kazrogal_hellfire, spell_gen_mark_of_kazrogal_hellfire_aura);
|
||||
|
||||
Reference in New Issue
Block a user