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
This commit is contained in:
Gildor
2021-04-11 13:57:14 +02:00
committed by GitHub
parent 11ba46d64b
commit 6bdfa91fa7

View File

@@ -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())