diff --git a/sql/custom/world/2026_11_10_96_world_classic_nightfall_drain_soul_wrack.sql b/sql/custom/world/2026_11_10_96_world_classic_nightfall_drain_soul_wrack.sql new file mode 100644 index 0000000000..ef5cf62d55 --- /dev/null +++ b/sql/custom/world/2026_11_10_96_world_classic_nightfall_drain_soul_wrack.sql @@ -0,0 +1,3 @@ +-- Classic 1.60 Nightfall (18094): the client tooltip names Corruption, Drain Soul, Drain Life and Wrack. The proc row only had Corruption +-- (warlock family flag [0] 0x2) and Drain Life ([0] 0x8); add Drain Soul ([0] 0x4000) and Wrack 1316697 ([1] 0x40000). Safe to run again. +UPDATE `spell_proc` SET `SpellFamilyMask0` = 0x400A, `SpellFamilyMask1` = 0x40000 WHERE `SpellId` = 18094; diff --git a/src/server/scripts/Custom/Classic/world/talents/classic_talents_warlock_druid.cpp b/src/server/scripts/Custom/Classic/world/talents/classic_talents_warlock_druid.cpp index 118c2fff74..ae4177f86d 100644 --- a/src/server/scripts/Custom/Classic/world/talents/classic_talents_warlock_druid.cpp +++ b/src/server/scripts/Custom/Classic/world/talents/classic_talents_warlock_druid.cpp @@ -523,8 +523,9 @@ class classic_spell_warl_curse_of_agony : public AuraScript } }; -// 18094 - Nightfall: "Gives you a $s1% chance to get a Shadow Trance after dealing damage with Corruption or Drain Life." The client spell is a -// dummy aura, nothing cast 17941 Shadow Trance, so the talent never procced. Each tick is one roll (vanilla: periodic damage of the two spells). +// 18094 - Nightfall: "Gives your Corruption, Drain Soul, Drain Life, and Wrack spells a $m1% chance to cause you to enter a Shadow Trance after +// damaging the opponent." The client spell is a dummy aura, nothing cast 17941 Shadow Trance, so the talent never procced. Each tick of the +// four spells' periodic damage is one roll. class classic_talent_warl_nightfall : public AuraScript { bool Validate(SpellInfo const* /*spellInfo*/) override @@ -535,8 +536,9 @@ class classic_talent_warl_nightfall : public AuraScript bool CheckProc(ProcEventInfo& eventInfo) { SpellInfo const* spellInfo = eventInfo.GetSpellInfo(); - // Corruption: warlock family flag 0x2, Drain Life: 0x8 - return spellInfo && spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && (spellInfo->SpellFamilyFlags[0] & 0xA); + // Corruption: warlock family flag [0] 0x2, Drain Life: [0] 0x8, Drain Soul: [0] 0x4000, Wrack 1316697: [1] 0x40000 + return spellInfo && spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK + && ((spellInfo->SpellFamilyFlags[0] & 0x400A) || (spellInfo->SpellFamilyFlags[1] & 0x40000)); } void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)