mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Spells: Prevent creatures from being able to cast all their spells while moving
Closes #26137
This commit is contained in:
@@ -3917,10 +3917,6 @@ void Spell::EffectKnockBack()
|
||||
if (unitTarget->HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED))
|
||||
return;
|
||||
|
||||
// Instantly interrupt non melee spells being cast
|
||||
if (unitTarget->IsNonMeleeSpellCast(true))
|
||||
unitTarget->InterruptNonMeleeSpells(true);
|
||||
|
||||
float ratio = 0.1f;
|
||||
float speedxy = float(effectInfo->MiscValue) * ratio;
|
||||
float speedz = float(damage) * ratio;
|
||||
|
||||
Reference in New Issue
Block a user