diff options
| author | megamage <none@none> | 2009-04-09 13:39:23 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-09 13:39:23 -0500 |
| commit | 5a71d93bd24880866890f4b5193db60d4aff0c96 (patch) | |
| tree | a5b208dcae4a99012343aedd0dedcb7479900a6b /src/game/Spell.cpp | |
| parent | ba4e54f2f7d411eb60c8927e358d2835019a657a (diff) | |
*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
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index a2c6ae6dfee..c5646311c2d 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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)) |
