From 06d79464d317a85add2fed734e079230d8bee1e4 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 12 Jun 2023 15:47:29 +0200 Subject: [PATCH] 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 --- src/server/game/Entities/Unit/Unit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index b646b03482..b9f9a98c7e 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -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; }