[7768] Add check to prevent set homebind to instance map.

This commit is contained in:
VladimirMangos 2009-05-05 10:37:05 +04:00
parent c0bb0fd09d
commit 881cceff8c
2 changed files with 5 additions and 1 deletions

View file

@ -434,6 +434,10 @@ void WorldSession::HandleBinderActivateOpcode( WorldPacket & recv_data )
void WorldSession::SendBindPoint(Creature *npc)
{
// prevent set homebind to instances in any case
if(sMapStore.LookupEntry(GetPlayer()->GetMapId())->Instanceable())
return;
uint32 bindspell = 3286;
uint32 zone_id = _player->GetZoneId();