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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user