Scripts/Westfall: fixed quest "Livin' the Life"

This commit is contained in:
Ovahlord
2020-01-31 12:54:28 +01:00
parent 01be7e130f
commit 986a75fc2f
2 changed files with 136 additions and 0 deletions

View File

@@ -153,10 +153,27 @@ class spell_westfall_wake_harvest_golem : public SpellScript
}
};
class spell_westfall_quest_credit_jangolode_event : public SpellScript
{
PrepareSpellScript(spell_westfall_quest_credit_jangolode_event);
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{
GetHitUnit()->ExitVehicle();
}
void Register() override
{
OnEffectHitTarget += SpellEffectFn(spell_westfall_quest_credit_jangolode_event::HandleScriptEffect, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
void AddSC_westfall()
{
RegisterSpellScript(spell_westfall_unbound_energy);
RegisterCreatureAI(npc_westfall_overloaded_harvest_golem);
RegisterAuraScript(spell_westfall_reaping_blows);
RegisterSpellScript(spell_westfall_wake_harvest_golem);
RegisterSpellScript(spell_westfall_quest_credit_jangolode_event);
}