mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Spell: don't make creature change orientation to 0 if channeling self
This commit is contained in:
@@ -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