diff options
| author | Killyana <morphone1@gmail.com> | 2020-01-01 17:19:37 +0100 |
|---|---|---|
| committer | Killyana <morphone1@gmail.com> | 2020-01-01 17:19:37 +0100 |
| commit | a32aeceb0da5d691eb655e80eb9ea7b32fc44839 (patch) | |
| tree | ba3d2d7bc88fc323bca7466fe1c507bf7ef5d104 /src/server/game/Spells | |
| parent | 4ccf01de3947f50629c20192da3f99cb8c693b35 (diff) | |
Core/Creature: Clear creature focus after an evade
Diffstat (limited to 'src/server/game/Spells')
| -rw-r--r-- | src/server/game/Spells/Spell.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
