Core/Spells: Implemented SPELL_ATTR13_DO_NOT_ALLOW_DISABLE_MOVEMENT_INTERRUPT

This commit is contained in:
Shauren
2024-05-15 14:58:37 +02:00
parent 41f7db12f6
commit 48bc24697f
3 changed files with 7 additions and 4 deletions
+3
View File
@@ -3159,6 +3159,9 @@ bool Unit::IsMovementPreventedByCasting() const
bool Unit::CanCastSpellWhileMoving(SpellInfo const* spellInfo) const
{
if (spellInfo->HasAttribute(SPELL_ATTR13_DO_NOT_ALLOW_DISABLE_MOVEMENT_INTERRUPT))
return false;
if (HasAuraTypeWithAffectMask(SPELL_AURA_CAST_WHILE_WALKING, spellInfo))
return true;