Fix (Core/Movement): During escort movement, do not stop moving if unit is casting channeled spells. (#9815)

Fixes #9286
This commit is contained in:
UltraNix
2022-01-03 21:06:41 +01:00
committed by GitHub
parent b7dcf93be4
commit d90e368166
2 changed files with 2 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ bool EscortMovementGenerator<T>::DoUpdate(T* unit, uint32 /*diff*/)
if (unit->HasUnitState(UNIT_STATE_NOT_MOVE) || unit->IsMovementPreventedByCasting())
{
unit->StopMoving();
unit->ClearUnitState(UNIT_STATE_ROAMING_MOVE);
return true;
}

View File

@@ -6187,6 +6187,7 @@ void SpellMgr::LoadDbcDataCorrections()
ApplySpellFix({ 69768 }, [](SpellEntry* spellInfo)
{
spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_TARGET_ANY;
spellInfo->AttributesEx5 |= SPELL_ATTR5_ALLOW_ACTION_DURING_CHANNEL;
});
ApplySpellFix({ 69767 }, [](SpellEntry* spellInfo)