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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user