mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Spells: Allow Spells with SPELL_EFFECT_KNOCK_BACK to knockback stunned targets (#29883)
Closes #18180
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user