aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraftedRO <24683355+CraftedRO@users.noreply.github.com>2024-04-04 22:48:05 +0300
committerGitHub <noreply@github.com>2024-04-04 21:48:05 +0200
commit2a7efcc818af9dae89cd9e4e541c621958c2b9c4 (patch)
tree32f8d29b3a29b2fc8b80af534514258a26616c58 /src
parentfdaad6604c9be60c3950a4ec476f980b700a1dc2 (diff)
Core/Spells: Allow Spells with SPELL_EFFECT_KNOCK_BACK to knockback stunned targets (#29883)
Closes #18180
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index f5edb7324ef..b4cf72a7ac5 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -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