fix(Scripts/Quest): Add Where Time Went Wrong (13048) Player Lines (#26805)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
-- Where Time Went Wrong (13048): Lorehammer reaction lines
|
||||||
|
DELETE FROM `spell_script_names` WHERE `spell_id` IN (56796, 56797);
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||||
|
(56796, 'spell_q13048_time_period'),
|
||||||
|
(56797, 'spell_q13048_time_period');
|
||||||
@@ -1357,6 +1357,27 @@ class spell_riding_jokkum : public AuraScript
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Quest Where Time Went Wrong (13048)
|
||||||
|
class spell_q13048_time_period : public SpellScript
|
||||||
|
{
|
||||||
|
PrepareSpellScript(spell_q13048_time_period);
|
||||||
|
|
||||||
|
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
|
||||||
|
{
|
||||||
|
Player* player = GetHitPlayer();
|
||||||
|
|
||||||
|
if (!player)
|
||||||
|
return;
|
||||||
|
|
||||||
|
player->Unit::Say(GetSpellInfo()->Effects[EFFECT_0].CalcValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register() override
|
||||||
|
{
|
||||||
|
OnEffectHitTarget += SpellEffectFn(spell_q13048_time_period::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void AddSC_storm_peaks()
|
void AddSC_storm_peaks()
|
||||||
{
|
{
|
||||||
RegisterCreatureAI(npc_frosthound);
|
RegisterCreatureAI(npc_frosthound);
|
||||||
@@ -1385,4 +1406,5 @@ void AddSC_storm_peaks()
|
|||||||
RegisterSpellScript(spell_eject_passenger_wild_wyrm);
|
RegisterSpellScript(spell_eject_passenger_wild_wyrm);
|
||||||
RegisterSpellScript(spell_q13010_jokkum_summon);
|
RegisterSpellScript(spell_q13010_jokkum_summon);
|
||||||
RegisterSpellScript(spell_riding_jokkum);
|
RegisterSpellScript(spell_riding_jokkum);
|
||||||
|
RegisterSpellScript(spell_q13048_time_period);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user