Core/Spell: don't make creature change orientation to 0 if channeling self
This commit is contained in:
1 parent
8e16897073
commit
c697a9de2e
1 file changed
+4
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user