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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-05 14:46:53 -05:00
parent 97fb4e0a09
commit 7bf03fbeb3

View File

@@ -441,6 +441,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();