mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
[3.3.5] Core/Quest: A life without regret (#16067)
* Life without Regret * misc changes to sql * sql changes
This commit is contained in:
@@ -2482,6 +2482,33 @@ class spell_q13665_q13790_bested_trigger : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
// herald of war and life without regret portal spells
|
||||
class spell_59064_59439_portals : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_59064_59439_portals() : SpellScriptLoader("spell_59064_59439_portals") { }
|
||||
|
||||
class spell_59064_59439_portals_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_59064_59439_portals_SpellScript);
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
GetHitUnit()->CastSpell(GetHitUnit(), uint32(GetEffectValue()));
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_59064_59439_portals_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_59064_59439_portals_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_quest_spell_scripts()
|
||||
{
|
||||
new spell_q55_sacred_cleansing();
|
||||
@@ -2542,4 +2569,5 @@ void AddSC_quest_spell_scripts()
|
||||
new spell_q10929_fumping();
|
||||
new spell_q12414_hand_over_reins();
|
||||
new spell_q13665_q13790_bested_trigger();
|
||||
new spell_59064_59439_portals();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user