mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Illidan: Fixed Parasitic shadowfiends reproducing like rabbits
(cherry picked from commit a617cc4097)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_illidan_parasitic_shadowfiend_proc';
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(41913,'spell_illidan_parasitic_shadowfiend_proc');
|
||||
@@ -1937,6 +1937,28 @@ class spell_illidan_parasitic_shadowfiend : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
// 41913 - Parasitic Shadowfiend Passive
|
||||
class spell_illidan_parasitic_shadowfiend_proc : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_illidan_parasitic_shadowfiend_proc);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_PARASITIC_SHADOWFIEND, SPELL_PARASITIC_SHADOWFIEND_2 });
|
||||
}
|
||||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
Unit* target = eventInfo.GetProcTarget();
|
||||
return target && !target->HasAura(SPELL_PARASITIC_SHADOWFIEND) && !target->HasAura(SPELL_PARASITIC_SHADOWFIEND_2);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoCheckProc += AuraCheckProcFn(spell_illidan_parasitic_shadowfiend_proc::CheckProc);
|
||||
}
|
||||
};
|
||||
|
||||
// 41923 - Remove Parasitic Shadowfiends (SERVERSIDE)
|
||||
class spell_illidan_remove_parasitic_shadowfiend : public AuraScript
|
||||
{
|
||||
@@ -2349,6 +2371,7 @@ void AddSC_boss_illidan()
|
||||
RegisterAuraScript(spell_illidan_akama_door_channel);
|
||||
RegisterSpellScript(spell_illidan_draw_soul);
|
||||
RegisterAuraScript(spell_illidan_parasitic_shadowfiend);
|
||||
RegisterAuraScript(spell_illidan_parasitic_shadowfiend_proc);
|
||||
RegisterAuraScript(spell_illidan_remove_parasitic_shadowfiend);
|
||||
RegisterSpellScript(spell_illidan_throw_warglaive);
|
||||
RegisterAuraScript(spell_illidan_tear_of_azzinoth_channel);
|
||||
|
||||
Reference in New Issue
Block a user