mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 22:19:25 +01:00
Core/Spells: Pandemic will now proc on targets at or below 25% health only
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user