Core/Spells: Check Line of Sight every channel spell tick

This commit is contained in:
Shauren
2011-03-22 23:56:57 +01:00
parent 8f565b7e13
commit 9194625466
+2 -2
View File
@@ -4841,9 +4841,9 @@ SpellCastResult Spell::CheckCast(bool strict)
}
}
if (!m_IsTriggeredSpell && VMAP::VMapFactory::checkSpellForLoS(m_spellInfo->Id) && !m_caster->IsWithinLOSInMap(target))
// recheck LoS every channel tick
if ((!m_IsTriggeredSpell || (m_triggeredByAuraSpell && IsChanneledSpell(m_triggeredByAuraSpell))) && VMAP::VMapFactory::checkSpellForLoS(m_spellInfo->Id) && !m_caster->IsWithinLOSInMap(target))
return SPELL_FAILED_LINE_OF_SIGHT;
}
else if (m_caster == target)
{