Core/Spell: don't make creature change orientation to 0 if channeling self
Port From (https://github.com/TrinityCore/TrinityCore/commit/52ab2707682f37bbf35a0d384e81c79e8b064ebf)
This commit is contained in:
@@ -3983,6 +3983,8 @@ namespace Game.Spells
|
||||
m_caster.AddChannelObject(target.targetGUID);
|
||||
|
||||
if (m_UniqueTargetInfo.Count == 1 && m_UniqueGOTargetInfo.Empty())
|
||||
{
|
||||
if (target.targetGUID != m_caster.GetGUID())
|
||||
{
|
||||
Creature creatureCaster = m_caster.ToCreature();
|
||||
if (creatureCaster != null)
|
||||
@@ -3990,6 +3992,7 @@ namespace Game.Spells
|
||||
creatureCaster.FocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.targetGUID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (GOTargetInfo target in m_UniqueGOTargetInfo)
|
||||
m_caster.AddChannelObject(target.targetGUID);
|
||||
|
||||
Reference in New Issue
Block a user