Creatures now release spell focus on projectile launch (for spells that have a projectile portion) as opposed to projectile impact.

This should make some very slow projectiles (f.ex. Professor Putricide's Malleable Goo) a lot smoother.
This commit is contained in:
treeston
2017-07-03 00:17:31 +02:00
parent f9f15250a5
commit 5d3c69bf44

View File

@@ -3271,6 +3271,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))
{