Scripts/Spells: Implement dh talent "Soul Sigils" (#31529)

This commit is contained in:
Aqua Deus
2026-02-05 14:34:03 +01:00
committed by GitHub
parent 6dc3aaa156
commit f5dea2231c
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
DELETE FROM `spell_proc` WHERE `SpellId` IN (395446);
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
(395446,0x00,107,0x00000000,0x00000002,0x00000000,0x00000000,0x0,0x0,0x5,0x2,0x403,0x0,0x0,0,0,0,0); -- Soul Sigils
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dh_soul_sigils';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(395446, 'spell_dh_soul_sigils');

View File

@@ -2143,6 +2143,20 @@ class spell_dh_soul_furnace_conduit : public AuraScript
}
};
// 395446 - Soul Sigils
class spell_dh_soul_sigils : public AuraScript
{
void HandleOnProc(AuraEffect const* aurEff, ProcEventInfo const& eventInfo) const
{
spell_dh_shattered_souls_base_lesser::CreateFragments(eventInfo.GetActionTarget(), eventInfo.GetActor(), aurEff->GetAmount());
}
void Register() override
{
OnEffectProc += AuraEffectProcFn(spell_dh_soul_sigils::HandleOnProc, EFFECT_0, SPELL_AURA_DUMMY);
}
};
// 202138 - Sigil of Chains
// 204596 - Sigil of Flame
// 207684 - Sigil of Misery
@@ -2431,6 +2445,7 @@ void AddSC_demon_hunter_spell_scripts()
RegisterSpellScript(spell_dh_soulmonger);
RegisterSpellAndAuraScriptPair(spell_dh_soul_carver, spell_dh_soul_carver_aura);
RegisterSpellScript(spell_dh_soul_fragments_damage_taken_tracker);
RegisterSpellScript(spell_dh_soul_sigils);
RegisterSpellScript(spell_dh_student_of_suffering);
RegisterSpellScript(spell_dh_tactical_retreat);
RegisterSpellScript(spell_dh_unhindered_assault);