From c697a9de2edf3f1bee932288ea01b8feaa9dbdc9 Mon Sep 17 00:00:00 2001 From: ariel- Date: Sun, 23 Apr 2017 20:38:48 -0300 Subject: [PATCH] Core/Spell: don't make creature change orientation to 0 if channeling self --- src/server/game/Spells/Spell.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index c48970d55fb..5f80a3d4621 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4416,9 +4416,10 @@ void Spell::SendChannelStart(uint32 duration) { m_caster->SetChannelObjectGuid(channelTarget); - if (Creature* creatureCaster = m_caster->ToCreature()) - if (!creatureCaster->IsFocusing(this)) - creatureCaster->FocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, channelTarget)); + if (channelTarget != m_caster->GetGUID()) + if (Creature* creatureCaster = m_caster->ToCreature()) + if (!creatureCaster->IsFocusing(this)) + creatureCaster->FocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, channelTarget)); } m_caster->SetUInt32Value(UNIT_CHANNEL_SPELL, m_spellInfo->Id);