mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Script/Spells): Book of Fel Names (#17051)
This commit is contained in:
@@ -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');
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user