Core/Spells: Prevent creatures from being able to cast all their spells while moving

Closes #26137
This commit is contained in:
Shauren
2024-05-18 11:50:00 +02:00
parent 2ad7c7829b
commit f80f931e2b
3 changed files with 38 additions and 28 deletions

View File

@@ -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;