diff options
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; } |