[3.3.5] Core/Quest: A life without regret (#16067)

* Life without Regret

* misc changes to sql

* sql changes
This commit is contained in:
JamminWidYou
2016-06-14 13:48:28 +02:00
committed by mik1893
parent 2df6a9126a
commit 3002839bfe
3 changed files with 961 additions and 0 deletions

View File

@@ -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();
}