From 6bdfa91fa795b24bfba6a4497784b693f6216638 Mon Sep 17 00:00:00 2001 From: Gildor Date: Sun, 11 Apr 2021 13:57:14 +0200 Subject: Core/Spells: players shouldn't force their orientation (serverside) on each periodictick when channeling (#26363) * Core/Spells: players shouldn't force their orientation (serverside) on each periodictick when channeling * apply @Ovahlord feedback --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 46af96aaef1..3dc138b3796 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -869,7 +869,8 @@ void AuraEffect::PeriodicTick(AuraApplication* aurApp, Unit* caster) const Unit* target = aurApp->GetTarget(); // Update serverside orientation of tracking channeled auras on periodic update ticks - if (caster && m_spellInfo->IsChanneled() && m_spellInfo->HasAttribute(SPELL_ATTR1_CHANNEL_TRACK_TARGET)) + // exclude players because can turn during channeling and shouldn't desync orientation client/server + if (caster && !caster->IsPlayer() && m_spellInfo->IsChanneled() && m_spellInfo->HasAttribute(SPELL_ATTR1_CHANNEL_TRACK_TARGET)) { ObjectGuid const channelGuid = caster->GetChannelObjectGuid(); if (!channelGuid.IsEmpty() && channelGuid != caster->GetGUID()) -- cgit v1.2.3