From 4a66b0934d584facc7e32a25a08906fd10587862 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 5 May 2009 10:37:05 +0400 Subject: [PATCH] [7768] Add check to prevent set homebind to instance map. --- src/game/NPCHandler.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index 05b77b4b4..abbebf648 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -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(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 11ffd61f3..09af13931 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7767" + #define REVISION_NR "7768" #endif // __REVISION_NR_H__ -- 2.11.4.GIT