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

Closes #18180
This commit is contained in:
CraftedRO
2024-04-04 22:48:05 +03:00
committed by GitHub
parent fdaad6604c
commit 2a7efcc818

View File

@@ -4305,8 +4305,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;
// Instantly interrupt non melee spells being cast