Core/Spells: Implemented SPELL_ATTR13_DO_NOT_ALLOW_DISABLE_MOVEMENT_INTERRUPT
Port From (https://github.com/TrinityCore/TrinityCore/commit/48bc24697f58f95a5ff07e0884ef03d27a303f73)
This commit is contained in:
@@ -1515,6 +1515,9 @@ namespace Game.Entities
|
||||
|
||||
public bool CanCastSpellWhileMoving(SpellInfo spellInfo)
|
||||
{
|
||||
if (spellInfo.HasAttribute(SpellAttr13.DoNotAllowDisableMovementInterrupt))
|
||||
return false;
|
||||
|
||||
if (HasAuraTypeWithAffectMask(AuraType.CastWhileWalking, spellInfo))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user