Core/Spell: don't make creature change orientation to 0 if channeling self

This commit is contained in:
ariel- authored and Aokromes committed 2017-04-25 13:31:11 +02:00
1 parent 8e16897073
commit c697a9de2e
1 file changed
+4 -3
+4 -3
View File
@@ -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);