Core/Spells: players shouldn't force their orientation (serverside) on each periodictick when channeling

Port From (https://github.com/TrinityCore/TrinityCore/commit/0d51e52aa608c85517035fb378500be01b0e578e)
This commit is contained in:
hondacrx
2022-05-26 16:32:13 -04:00
parent 80fb973080
commit 7aa1d7aa7a
+2 -1
View File
@@ -514,7 +514,8 @@ namespace Game.Spells
Unit target = aurApp.GetTarget();
// Update serverside orientation of tracking channeled auras on periodic update ticks
if (caster != null && m_spellInfo.IsChanneled() && m_spellInfo.HasAttribute(SpellAttr1.ChannelTrackTarget) && !caster.m_unitData.ChannelObjects.Empty())
// exclude players because can turn during channeling and shouldn't desync orientation client/server
if (caster != null && !caster.IsPlayer() && m_spellInfo.IsChanneled() && m_spellInfo.HasAttribute(SpellAttr1.ChannelTrackTarget) && caster.m_unitData.ChannelObjects.Size())
{
ObjectGuid channelGuid = caster.m_unitData.ChannelObjects[0];
if (channelGuid != caster.GetGUID())