{"action":"created","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15005","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15005/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15005/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15005/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/15005","id":92942937,"number":15005,"title":"[3.3.5a]Is there any function like setInstanceId? (Leviathan not giving raid lock)","user":{"login":"selenir","id":3535810,"avatar_url":"https://avatars.githubusercontent.com/u/3535810?v=3","gravatar_id":"","url":"https://api.github.com/users/selenir","html_url":"https://github.com/selenir","followers_url":"https://api.github.com/users/selenir/followers","following_url":"https://api.github.com/users/selenir/following{/other_user}","gists_url":"https://api.github.com/users/selenir/gists{/gist_id}","starred_url":"https://api.github.com/users/selenir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selenir/subscriptions","organizations_url":"https://api.github.com/users/selenir/orgs","repos_url":"https://api.github.com/users/selenir/repos","events_url":"https://api.github.com/users/selenir/events{/privacy}","received_events_url":"https://api.github.com/users/selenir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Comp-Core","name":"Comp-Core","color":"FF6600"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-03T22:17:09Z","updated_at":"2015-07-04T00:48:44Z","closed_at":null,"body":"a29433f\r\n\r\nSometimes, when u kill Levy, there goes a function from instance scripts, that sets the lock (based on the flags_extra in db). When you are sitting in the machine, you are totally ignored by this script, tested 10 times. When a team is in the machine, we don't get the raid lock. When I'm without, I get.\r\n\r\nThat's why I need to hardcode this (add in JustDied()) or something."},"comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/118446773","html_url":"https://github.com/TrinityCore/TrinityCore/issues/15005#issuecomment-118446773","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15005","id":118446773,"user":{"login":"tkrokli","id":4903600,"avatar_url":"https://avatars.githubusercontent.com/u/4903600?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrokli","html_url":"https://github.com/tkrokli","followers_url":"https://api.github.com/users/tkrokli/followers","following_url":"https://api.github.com/users/tkrokli/following{/other_user}","gists_url":"https://api.github.com/users/tkrokli/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrokli/subscriptions","organizations_url":"https://api.github.com/users/tkrokli/orgs","repos_url":"https://api.github.com/users/tkrokli/repos","events_url":"https://api.github.com/users/tkrokli/events{/privacy}","received_events_url":"https://api.github.com/users/tkrokli/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T00:48:44Z","updated_at":"2015-07-04T00:48:44Z","body":"Suggestion: **[3.3.5] Leviathan does not trigger raid lock**\r\n\r\nI don't think `SetInstanceID()` is used for bosses, I could only find that code used in Battlegrounds:\r\n\r\nhttps://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Battlegrounds/Battleground.h#L271\r\nhttps://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Battlegrounds/BattlegroundMgr.cpp#L401\r\nhttps://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Battlegrounds/BattlegroundMgr.cpp#L489"}}