Skip to content

Commit

Permalink
Spell: Do not knock back when rooted
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Oct 6, 2024
1 parent 0924813 commit 82109e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 82109e4

Please sign in to comment.