fix(Scripts/GrizzlyHills): Add Text when deciphering the rune plates in The Runic Prophecies (#27210)

This commit is contained in:
Gultask
2026-08-20 17:04:22 +02:00
committed by GitHub
parent 3c4651bc53
commit d8dc2d8245
2 changed files with 27 additions and 0 deletions
@@ -0,0 +1,6 @@
--
DELETE FROM `spell_script_names` WHERE `spell_id` IN (47062, 47063, 47064) AND `ScriptName` = 'spell_q12058_the_runic_prophecies';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(47062, 'spell_q12058_the_runic_prophecies'),
(47063, 'spell_q12058_the_runic_prophecies'),
(47064, 'spell_q12058_the_runic_prophecies');
@@ -1064,6 +1064,26 @@ class spell_frog_kiss : public SpellScript
}
};
class spell_q12058_the_runic_prophecies : public SpellScript
{
PrepareSpellScript(spell_q12058_the_runic_prophecies);
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{
Player* player = GetHitPlayer();
if (!player)
return;
player->Unit::Say(GetSpellInfo()->Effects[EFFECT_0].CalcValue());
}
void Register() override
{
OnEffectHitTarget += SpellEffectFn(spell_q12058_the_runic_prophecies::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
void AddSC_grizzly_hills()
{
new npc_emily();
@@ -1082,4 +1102,5 @@ void AddSC_grizzly_hills()
RegisterSpellScript(spell_q12227_outhouse_groans);
RegisterSpellScript(spell_q12227_camera_shake);
RegisterSpellScript(spell_frog_kiss);
RegisterSpellScript(spell_q12058_the_runic_prophecies);
}