mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Merge branch 'master' of git@github.com:mangos/mangos
This commit is contained in:
commit
eb05f7d5eb
55 changed files with 757 additions and 182 deletions
|
|
@ -3221,7 +3221,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