From a32aeceb0da5d691eb655e80eb9ea7b32fc44839 Mon Sep 17 00:00:00 2001 From: Killyana Date: Wed, 1 Jan 2020 17:19:37 +0100 Subject: Core/Creature: Clear creature focus after an evade --- src/server/game/Spells/Spell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/game/Spells/Spell.cpp') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index ec83602fa36..733c7d5eb89 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4552,10 +4552,10 @@ void Spell::SendChannelStart(uint32 duration) { unitCaster->SetChannelObjectGuid(channelTarget); - if (channelTarget != unitCaster->GetGUID()) - if (Creature* creatureCaster = unitCaster->ToCreature()) - if (!creatureCaster->HasSpellFocus(this)) - creatureCaster->SetSpellFocus(this, ObjectAccessor::GetWorldObject(*creatureCaster, channelTarget)); + if (Creature* creatureCaster = m_caster->ToCreature()) + if (!creatureCaster->HasSpellFocus(this)) + creatureCaster->SetSpellFocus(this, + ObjectAccessor::GetWorldObject(*creatureCaster, channelTarget)); } unitCaster->SetUInt32Value(UNIT_CHANNEL_SPELL, m_spellInfo->Id); -- cgit v1.2.3