mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user