Nightfall (18094) procs from Drain Soul and Wrack too

The 1.60 tooltip names Corruption, Drain Soul, Drain Life and Wrack;
only Corruption and Drain Life could proc it.

(cherry picked from commit 019c9d401a3587ffd1b7666deaa3fd146c0c9381)
This commit is contained in:
Karrz1
2026-11-11 23:37:53 +00:00
parent 83da790198
commit e2c4bf6946
2 changed files with 9 additions and 4 deletions
@@ -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;
@@ -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*/)