Skip to content

Commit 000e4e9

Browse files
Scripts/Spells: Implement warlock talent "Shadow Invocation" (TrinityCore#30561)
1 parent a3d29b4 commit 000e4e9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DELETE FROM `spell_proc` WHERE `SpellId` IN (422054);
2+
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
3+
(422054,0x00,5,0x00000000,0x00000000,0x00000000,0x00000000,0x0,0x0,0x1,0x2,0x403,0x0,0x0,0,20,0,0); -- Shadow Invocation
4+
5+
DELETE FROM `spell_script_names` WHERE `spell_id` = 422054;
6+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
7+
(422054, 'spell_warl_shadow_invocation');

src/server/scripts/Spells/spell_warlock.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,22 @@ class spell_warl_shadow_bolt : public SpellScript
11751175
}
11761176
};
11771177

1178+
// 422054 - Shadow Invocation
1179+
class spell_warl_shadow_invocation : public AuraScript
1180+
{
1181+
void HandleProc(ProcEventInfo& eventInfo)
1182+
{
1183+
Unit* caster = eventInfo.GetActor();
1184+
Unit* target = eventInfo.GetActionTarget();
1185+
caster->m_Events.AddEventAtOffset(new BilescourgeBombersEvent(caster, caster->GetPosition(), target->GetPosition()), 500ms);
1186+
}
1187+
1188+
void Register() override
1189+
{
1190+
OnProc += AuraProcFn(spell_warl_shadow_invocation::HandleProc);
1191+
}
1192+
};
1193+
11781194
// 452999 - Siphon Life
11791195
class spell_warl_siphon_life : public AuraScript
11801196
{
@@ -1601,6 +1617,7 @@ void AddSC_warlock_spell_scripts()
16011617
RegisterSpellAndAuraScriptPair(spell_warl_seed_of_corruption_dummy, spell_warl_seed_of_corruption_dummy_aura);
16021618
RegisterSpellScript(spell_warl_seed_of_corruption_generic);
16031619
RegisterSpellScript(spell_warl_shadow_bolt);
1620+
RegisterSpellScript(spell_warl_shadow_invocation);
16041621
RegisterSpellScript(spell_warl_siphon_life);
16051622
RegisterSpellScript(spell_warl_soul_swap);
16061623
RegisterSpellScript(spell_warl_soul_swap_dot_marker);

0 commit comments

Comments
 (0)