*Update vehicle code.
*Show correct visual effects to other players. *Do not allow attack players on vehicle. *Only dismiss vehicle when it is summoned. --HG-- branch : trunk
This commit is contained in:
1 parent
ba4e54f2f7
commit
5a71d93bd2
8 files changed
+76
-46
No files matched your search
+1
-1
@@ -3704,7 +3704,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
return SPELL_FAILED_TARGET_AURASTATE;
|
||||
|
||||
// Not allow casting on flying player
|
||||
if (target->isInFlight())
|
||||
if (target->hasUnitState(UNIT_STAT_UNATTACKABLE))
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
if(!m_IsTriggeredSpell && VMAP::VMapFactory::checkSpellForLoS(m_spellInfo->Id) && !m_caster->IsWithinLOSInMap(target))
|
||||
|
||||
Reference in new issue
Block a user