diff options
author | tartalo <none@none> | 2009-12-01 11:43:57 +0100 |
---|---|---|
committer | tartalo <none@none> | 2009-12-01 11:43:57 +0100 |
commit | d7262a62986ccdf24fdf8a8f3702246adf359d3d (patch) | |
tree | bb2db8c29496b1aa0776807b52e5bc79c70886ad /src/game/Spell.cpp | |
parent | b7934fc24505b42f03764a9dddbfe6ab1d1af2c3 (diff) |
Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 7e886402480..66c8f5fa99c 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -5094,6 +5094,15 @@ SpellCastResult Spell::CheckCast(bool strict) break; } + case 44795: // Parachute + { + float x, y, z; + m_caster->GetPosition(x, y, z); + float ground_Z = m_caster->GetMap()->GetVmapHeight(x, y, z, true); + if (fabs(ground_Z - z) < 0.1f) + return SPELL_FAILED_DONT_REPORT; + break; + } default: break; } |