From ed8cc640f08021f4e1dbf829bef410f67e4383a6 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 23 May 2021 15:16:42 +0200 Subject: [PATCH] Core/Spells: Pandemic will now proc on targets at or below 25% health only --- src/server/scripts/Spells/spell_warlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index f03ae02909f..162c71a0adc 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -1600,7 +1600,7 @@ class spell_warl_pandemic : public AuraScript if (!eventInfo.GetProcTarget()) return false; - return roll_chance_i(GetSpellInfo()->Effects[EFFECT_0].CalcValue()); + return eventInfo.GetProcTarget()->GetHealthPct() <= 25.f && roll_chance_i(GetSpellInfo()->Effects[EFFECT_0].CalcValue()); } void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)