aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2021-04-11 13:57:14 +0200
committerGitHub <noreply@github.com>2021-04-11 13:57:14 +0200
commit6bdfa91fa795b24bfba6a4497784b693f6216638 (patch)
tree0b5de61cbe3bb61b8eaf54a2fb32b78565674419 /src
parent11ba46d64bd97a6c7a1fce3c3c0a1f63d6e8c6ff (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp3
1 files changed, 2 insertions, 1 deletions
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())