Core/ScriptMgr: Add OnBindToInstance Player hook

--HG--
branch : trunk
This commit is contained in:
Spp
2010-12-23 06:06:21 +01:00
parent 1f238d1700
commit 0c8b07d3e5
3 changed files with 10 additions and 0 deletions
@@ -17595,6 +17595,7 @@ InstancePlayerBind* Player::BindToInstance(InstanceSave *save, bool permanent, b
bind.perm = permanent;
if (!load)
sLog.outDebug("Player::BindToInstance: %s(%d) is now bound to map %d, instance %d, difficulty %d", GetName(), GetGUIDLow(), save->GetMapId(), save->GetInstanceId(), save->GetDifficulty());
sScriptMgr->OnPlayerBindToInstance(this, save->GetDifficulty(), save->GetMapId(), permanent);
return &bind;
}
else