Core/Spells: merged a focus release commit at spell launch phase
This commit is contained in:
1 parent
485ede9b53
commit
1c4c6fc60d
1 file changed
+4
@@ -3412,6 +3412,10 @@ void Spell::_cast(bool skipCheck)
|
||||
// we must send smsg_spell_go packet before m_castItem delete in TakeCastItem()...
|
||||
SendSpellGo();
|
||||
|
||||
if (!m_spellInfo->IsChanneled())
|
||||
if (Creature* creatureCaster = m_caster->ToCreature())
|
||||
creatureCaster->ReleaseFocus(this);
|
||||
|
||||
// Okay, everything is prepared. Now we need to distinguish between immediate and evented delayed spells
|
||||
if ((m_spellInfo->Speed > 0.0f && !m_spellInfo->IsChanneled()) || m_spellInfo->HasAttribute(SPELL_ATTR4_UNK4))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user