mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/GrizzlyHills): Add Text when deciphering the rune plates in The Runic Prophecies (#27210)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user