From 82109e4e31739bd97a8fa2819f5dfca2f18b517a Mon Sep 17 00:00:00 2001 From: insuna Date: Sun, 6 Oct 2024 14:08:49 +0200 Subject: [PATCH] Spell: Do not knock back when rooted --- src/game/Spells/SpellEffects.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Spells/SpellEffects.cpp b/src/game/Spells/SpellEffects.cpp index ac3b8e3cd27..edd9e51f69c 100644 --- a/src/game/Spells/SpellEffects.cpp +++ b/src/game/Spells/SpellEffects.cpp @@ -11733,6 +11733,9 @@ void Spell::EffectKnockBack(SpellEffectIndex eff_idx) break; } + if (unitTarget->hasUnitState(UNIT_STAT_ROOT)) + return; + unitTarget->KnockBackFrom(m_caster, float(m_spellInfo->EffectMiscValue[eff_idx]) / 10, float(damage) / 10); }