diff options
author | Gildor <gildor55@gmail.com> | 2021-04-11 13:57:14 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-08 15:57:06 +0100 |
commit | 0d51e52aa608c85517035fb378500be01b0e578e (patch) | |
tree | ec784dfbd74bb6802c6a5417f4239e5e8f4d1207 /src | |
parent | 667d3cf8fd9a084fb5bc336d0ce2558bed9f5ce2 (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
(cherry picked from commit 6bdfa91fa795b24bfba6a4497784b693f6216638)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 3 |
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 96d2b491ec7..1bdb4c64437 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -1065,7 +1065,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) && caster->m_unitData->ChannelObjects.size()) + // 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) && caster->m_unitData->ChannelObjects.size()) { ObjectGuid const channelGuid = caster->m_unitData->ChannelObjects[0]; if (channelGuid != caster->GetGUID()) |