fix(Script/Spells): Book of Fel Names (#17051)

This commit is contained in:
Walter Pagani
2023-08-21 16:15:00 -03:00
committed by GitHub
parent f01cc09dfc
commit 957ccdb845
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
--
DELETE FROM `spell_script_names` WHERE `spell_id` IN (37906, 36298);
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(37906, 'spell_q10651_q10692_book_of_fel_names');

View File

@@ -2451,7 +2451,7 @@ class spell_q4735_collect_rookery_egg : public SpellScript
} }
}; };
enum book enum BookOfFelNames
{ {
SPELL_METAMORPHOSIS = 36298 SPELL_METAMORPHOSIS = 36298
}; };
@@ -2462,7 +2462,8 @@ class spell_q10651_q10692_book_of_fel_names : public SpellScript
void HandleScript(SpellEffIndex /*effIndex*/) void HandleScript(SpellEffIndex /*effIndex*/)
{ {
GetHitUnit()->RemoveAurasDueToSpell(SPELL_METAMORPHOSIS); if (GetHitUnit()->HasAura(SPELL_METAMORPHOSIS))
GetHitUnit()->RemoveAurasDueToSpell(SPELL_METAMORPHOSIS);
} }
void Register() override void Register() override