Core/Movement: merge 335 feedback changes for interrupt handing

This commit is contained in:
Ovahlord committed 2020-01-22 20:42:02 +01:00
1 parent 7f3a2084d1
commit cf430ce61a
2 files changed
+10 -5

No files matched your search

+3 -2
View File
@@ -409,8 +409,6 @@ Unit::Unit(bool isWorldObject) :
_oldFactionId = 0;
_isWalkingBeforeCharm = false;
_positionUpdateInfo = PositionUpdateInfo();
}
////////////////////////////////////////////////////////////
@@ -530,6 +528,9 @@ void Unit::Update(uint32 p_time)
else if (!movespline->Finalized())
InterruptMovementBasedAuras();
// All position info based actions have been executed, reset info
_positionUpdateInfo.Reset();
// Update serverside orientation of channeled spells that are suposed to track the channel target
if (Spell const* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
if (spell->GetSpellInfo()->HasAttribute(SPELL_ATTR1_CHANNEL_TRACK_TARGET))