Core/Spells: Check Line of Sight every channel spell tick
This commit is contained in:
@@ -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;
|
return SPELL_FAILED_LINE_OF_SIGHT;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (m_caster == target)
|
else if (m_caster == target)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user