[7005] Request Area/Zone Ids using 3D coordinates.

.map files not have 3D specifci area infor. So use hack way for update areaflag for some cases (areas 4281, 4342)
where exist area dependent auras.
This commit is contained in:
VladimirMangos 2009-01-02 19:07:34 +03:00
parent d2d5cb4643
commit bd4fc1b0ae
8 changed files with 42 additions and 21 deletions

View file

@ -4858,7 +4858,7 @@ void ObjectMgr::LoadGraveyardZones()
WorldSafeLocsEntry const *ObjectMgr::GetClosestGraveYard(float x, float y, float z, uint32 MapId, uint32 team)
{
// search for zone associated closest graveyard
uint32 zoneId = MapManager::Instance().GetZoneId(MapId,x,y);
uint32 zoneId = MapManager::Instance().GetZoneId(MapId,x,y,z);
// Simulate std. algorithm:
// found some graveyard associated to (ghost_zone,ghost_map)