Core/Spells: fixed rank 2 of Improved Searing pain having no effect

*the rank 2 spell does not have a 2nd spell effect containing the health threshold and since no glyph or talent is affecting this mechanic, we just use use the plain value instead of doing calculation shenanigans
This commit is contained in:
Ovahlord committed 2023-06-12 15:47:29 +02:00
1 parent 222a3f2203
commit 06d79464d3
1 file changed
+1 -3
+1 -3
View File
@@ -6813,11 +6813,9 @@ float Unit::SpellCritChanceTaken(Unit const* caster, SpellInfo const* spellInfo,
// Improved Searing Pain
if (AuraEffect const* effect = caster->GetDummyAuraEffect(SPELLFAMILY_WARLOCK, 816, EFFECT_0))
{
if (effect->IsAffectingSpell(spellInfo))
if (GetHealthPct() <= effect->GetSpellInfo()->Effects[EFFECT_1].CalcValue())
if (GetHealthPct() <= 25.f)
crit_chance += effect->GetAmount();
}
break;
}