aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-05 14:46:53 -0500
committermegamage <none@none>2009-05-05 14:46:53 -0500
commit7bf03fbeb382c309372582a9da9d0ff4c045b1b5 (patch)
tree43ccacf384389b2a522eaea93b6d036ccaed6c72 /src
parent97fb4e0a0947b7a47c76b88ecf80725babe5d6a6 (diff)
[7768] Add check to prevent set homebind to instance map. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/NPCHandler.cpp4
1 files changed, 4 insertions, 0 deletions
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();