Core/Spells: Allow Spells with SPELL_EFFECT_KNOCK_BACK to knockback stunned targets (#29883)

Closes #18180

(cherry picked from commit 2a7efcc818af9dae89cd9e4e541c621958c2b9c4)
This commit is contained in:
CraftedRO
2026-05-31 21:41:02 +02:00
committed by Shauren
parent 53d1be50a5
commit 8df1edea0b
+2 -2
View File
@@ -4043,8 +4043,8 @@ void Spell::EffectKnockBack()
if (creatureTarget->isWorldBoss() || creatureTarget->IsDungeonBoss())
return;
// Spells with SPELL_EFFECT_KNOCK_BACK (like Thunderstorm) can't knockback target if target has ROOT/STUN
if (unitTarget->HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED))
// Spells with SPELL_EFFECT_KNOCK_BACK (like Thunderstorm) can't knockback target if target has ROOT
if (unitTarget->HasUnitState(UNIT_STATE_ROOT))
return;
float ratio = 0.1f;