fix(Core/Spells): Fix Hungering Cold breaking from disease damage (#24888)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-26 02:50:19 -06:00
committed by GitHub
parent 585184b639
commit 1358d73e23

View File

@@ -614,16 +614,18 @@ class spell_dk_hungering_cold : public AuraScript
{
PrepareAuraScript(spell_dk_hungering_cold);
void HandleProc(ProcEventInfo& eventInfo)
bool CheckProc(ProcEventInfo& eventInfo)
{
PreventDefaultAction();
if (eventInfo.GetDamageInfo() && eventInfo.GetDamageInfo()->GetDamage() > 0 && (!eventInfo.GetSpellInfo() || eventInfo.GetSpellInfo()->Dispel != DISPEL_DISEASE))
SetDuration(0);
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
if (!spellInfo)
return true;
return spellInfo->Dispel != DISPEL_DISEASE;
}
void Register() override
{
OnProc += AuraProcFn(spell_dk_hungering_cold::HandleProc);
DoCheckProc += AuraCheckProcFn(spell_dk_hungering_cold::CheckProc);
}
};