aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-04-23 20:38:48 -0300
committerariel- <ariel-@users.noreply.github.com>2017-04-23 21:48:06 -0300
commit1f4439ece49790bee43016ea2462e3803b2f6218 (patch)
treee5c02feabdb2bdb7c197723c9c1ed39813d72e6f
parent3a0cb90ea994e82dd8c70888fb847082f738d5dc (diff)
Core/Spell: don't make creature change orientation to 0 if channeling self
-rw-r--r--src/server/game/Spells/Spell.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index f40607c391c..3145f12d0b2 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -4338,9 +4338,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);