From 33097d3e2d6ee86473d916da9a068d087be18873 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 18 May 2020 22:53:33 -0400 Subject: [PATCH] Core/Spell: don't make creature change orientation to 0 if channeling self Port From (https://github.com/TrinityCore/TrinityCore/commit/52ab2707682f37bbf35a0d384e81c79e8b064ebf) --- Source/Game/Spells/Spell.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index e1198f43d..d6aac75b2 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -3984,10 +3984,13 @@ namespace Game.Spells if (m_UniqueTargetInfo.Count == 1 && m_UniqueGOTargetInfo.Empty()) { - Creature creatureCaster = m_caster.ToCreature(); - if (creatureCaster != null) - if (!creatureCaster.IsFocusing(this)) - creatureCaster.FocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.targetGUID)); + if (target.targetGUID != m_caster.GetGUID()) + { + Creature creatureCaster = m_caster.ToCreature(); + if (creatureCaster != null) + if (!creatureCaster.IsFocusing(this)) + creatureCaster.FocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.targetGUID)); + } } }