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:
@@ -3984,10 +3984,13 @@ namespace Game.Spells
|
|||||||
|
|
||||||
if (m_UniqueTargetInfo.Count == 1 && m_UniqueGOTargetInfo.Empty())
|
if (m_UniqueTargetInfo.Count == 1 && m_UniqueGOTargetInfo.Empty())
|
||||||
{
|
{
|
||||||
Creature creatureCaster = m_caster.ToCreature();
|
if (target.targetGUID != m_caster.GetGUID())
|
||||||
if (creatureCaster != null)
|
{
|
||||||
if (!creatureCaster.IsFocusing(this))
|
Creature creatureCaster = m_caster.ToCreature();
|
||||||
creatureCaster.FocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.targetGUID));
|
if (creatureCaster != null)
|
||||||
|
if (!creatureCaster.IsFocusing(this))
|
||||||
|
creatureCaster.FocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.targetGUID));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user