Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-12-01 11:43:57 +01:00
parent b7934fc245
commit d7262a6298
12 changed files with 68 additions and 81 deletions

View File

@@ -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;
}