mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Do not check LOS for triggered spells.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
b681f5ac1a
commit
9284058126
1 changed files with 1 additions and 1 deletions
|
|
@ -3210,7 +3210,7 @@ uint8 Spell::CanCast(bool strict)
|
|||
if (target->isInFlight())
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
if(VMAP::VMapFactory::checkSpellForLoS(m_spellInfo->Id) && !m_caster->IsWithinLOSInMap(target))
|
||||
if(!m_IsTriggeredSpell && VMAP::VMapFactory::checkSpellForLoS(m_spellInfo->Id) && !m_caster->IsWithinLOSInMap(target))
|
||||
return SPELL_FAILED_LINE_OF_SIGHT;
|
||||
|
||||
// auto selection spell rank implemented in WorldSession::HandleCastSpellOpcode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue