Core/Spells: Pandemic will now proc on targets at or below 25% health only

This commit is contained in:
Ovahlord
2021-05-23 15:16:42 +02:00
parent ab482d2d4f
commit ed8cc640f0

View File

@@ -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)