From 7bf03fbeb382c309372582a9da9d0ff4c045b1b5 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 5 May 2009 14:46:53 -0500 Subject: [7768] Add check to prevent set homebind to instance map. Author: VladimirMangos --HG-- branch : trunk --- src/game/NPCHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index 5a9953564ab..c97196c0d91 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -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(); -- cgit v1.2.3