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

(cherry picked from commit 1f4439ece4)
This commit is contained in:
ariel-
2017-04-23 20:38:48 -03:00
committed by funjoker
parent 5e32e96278
commit 52ab270768

View File

@@ -4461,11 +4461,10 @@ void Spell::SendChannelStart(uint32 duration)
m_caster->AddChannelObject(target.targetGUID);
if (m_UniqueTargetInfo.size() == 1 && m_UniqueGOTargetInfo.empty())
{
if (Creature* creatureCaster = m_caster->ToCreature())
if (!creatureCaster->IsFocusing(this))
creatureCaster->FocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, target.targetGUID));
}
if(target.targetGUID != m_caster->GetGUID())
if (Creature* creatureCaster = m_caster->ToCreature())
if (!creatureCaster->IsFocusing(this))
creatureCaster->FocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, target.targetGUID));
}
for (GOTargetInfo const& target : m_UniqueGOTargetInfo)