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:
Gultask 2026-08-01 20:13:26 -03:00 committed by GitHub
parent d1ebb2739b
commit 18dbf7ff89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View file

@ -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');

View file

@ -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()
{
RegisterCreatureAI(npc_frosthound);
@ -1385,4 +1406,5 @@ void AddSC_storm_peaks()
RegisterSpellScript(spell_eject_passenger_wild_wyrm);
RegisterSpellScript(spell_q13010_jokkum_summon);
RegisterSpellScript(spell_riding_jokkum);
RegisterSpellScript(spell_q13048_time_period);
}