{"action":"created","comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments/49940851","id":49940851,"diff_hunk":"@@ -519,6 +519,71 @@ class npc_dancing_flames : public CreatureScript\n };\n \n /*######\n+## npc_torch_tossing_target_bunny_controller\n+######*/\n+\n+enum TorchTossingTarget\n+{\n+    NPC_TORCH_TOSSING_TARGET_BUNNY      = 25535,\n+    SPELL_TARGET_INDICATOR              = 45723\n+};\n+\n+class npc_torch_tossing_target_bunny_controller : public CreatureScript\n+{\n+public:\n+    npc_torch_tossing_target_bunny_controller() : CreatureScript(\"npc_torch_tossing_target_bunny_controller\") { }\n+\n+    struct npc_torch_tossing_target_bunny_controllerAI : public ScriptedAI\n+    {\n+        npc_torch_tossing_target_bunny_controllerAI(Creature* creature) : ScriptedAI(creature)\n+        {\n+            _targetTimer = 3000;\n+        }\n+\n+        ObjectGuid DoSearchForTargets()\n+        {\n+            std::list<Creature*> targets;\n+            me->GetCreatureListWithEntryInGrid(targets, NPC_TORCH_TOSSING_TARGET_BUNNY, 60.0f);\n+            for (std::list<Creature*>::const_iterator itr = targets.begin(); itr != targets.end(); ++itr)\n+            {\n+                if ((*itr)->GetGUID() == _lastTargetGUID)\n+                    targets.remove(*itr);","path":"src/server/scripts/World/npcs_special.cpp","position":null,"original_position":32,"commit_id":"8b74038531ffec2d809083fa73ad29ec693d7c1a","original_commit_id":"34b881b8f337a849ba9c37432b2a0aa99c7ddb3c","user":{"login":"sirikfoll","id":11219553,"avatar_url":"https://avatars.githubusercontent.com/u/11219553?v=3","gravatar_id":"","url":"https://api.github.com/users/sirikfoll","html_url":"https://github.com/sirikfoll","followers_url":"https://api.github.com/users/sirikfoll/followers","following_url":"https://api.github.com/users/sirikfoll/following{/other_user}","gists_url":"https://api.github.com/users/sirikfoll/gists{/gist_id}","starred_url":"https://api.github.com/users/sirikfoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirikfoll/subscriptions","organizations_url":"https://api.github.com/users/sirikfoll/orgs","repos_url":"https://api.github.com/users/sirikfoll/repos","events_url":"https://api.github.com/users/sirikfoll/events{/privacy}","received_events_url":"https://api.github.com/users/sirikfoll/received_events","type":"User","site_admin":false},"body":"Thanks!","created_at":"2016-01-17T03:55:16Z","updated_at":"2016-01-17T03:55:16Z","html_url":"https://github.com/TrinityCore/TrinityCore/pull/16262#discussion_r49940851","pull_request_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262","_links":{"self":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments/49940851"},"html":{"href":"https://github.com/TrinityCore/TrinityCore/pull/16262#discussion_r49940851"},"pull_request":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262"}}},"pull_request":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262","id":55981602,"html_url":"https://github.com/TrinityCore/TrinityCore/pull/16262","diff_url":"https://github.com/TrinityCore/TrinityCore/pull/16262.diff","patch_url":"https://github.com/TrinityCore/TrinityCore/pull/16262.patch","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16262","number":16262,"state":"open","locked":false,"title":"Core/Scripts Script Npc needed for Quest Torch Tossing, Part 2","user":{"login":"sirikfoll","id":11219553,"avatar_url":"https://avatars.githubusercontent.com/u/11219553?v=3","gravatar_id":"","url":"https://api.github.com/users/sirikfoll","html_url":"https://github.com/sirikfoll","followers_url":"https://api.github.com/users/sirikfoll/followers","following_url":"https://api.github.com/users/sirikfoll/following{/other_user}","gists_url":"https://api.github.com/users/sirikfoll/gists{/gist_id}","starred_url":"https://api.github.com/users/sirikfoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirikfoll/subscriptions","organizations_url":"https://api.github.com/users/sirikfoll/orgs","repos_url":"https://api.github.com/users/sirikfoll/repos","events_url":"https://api.github.com/users/sirikfoll/events{/privacy}","received_events_url":"https://api.github.com/users/sirikfoll/received_events","type":"User","site_admin":false},"body":"Script for Npc Torch Tossing Target_Bunny_Controller, responsable for handle the targets rotation for Midsummer Fire Festival quest, Torch Tossing.\r\nCorrect chaining, allowed classes, remove duplicates for quest Torch Tossing,\r\nAlso fixes quest A Thief's Reward.\r\n\r\nNote:\r\nA bunch of Npcs from Midsummer Fire Festival in general are missing in current TDB, including some needed for this quest.\r\nSo, with this PR and the 8197467c8787397ff58cd77e8a03a22b8654cac0 the quest is fully scripted, but remains correctly spawn the npcs.\r\n\r\nPs: If anyone knows a better way to do this, please tell.\r\n\r\nCloses #6879","created_at":"2016-01-14T01:28:25Z","updated_at":"2016-01-17T03:55:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6050092b7e3c2306874d86c6dd1c2061d2b836bb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262/commits","review_comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262/comments","review_comment_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16262/comments","statuses_url":"https://api.github.com/repos/TrinityCore/TrinityCore/statuses/8b74038531ffec2d809083fa73ad29ec693d7c1a","head":{"label":"sirikfoll:Torch","ref":"Torch","sha":"8b74038531ffec2d809083fa73ad29ec693d7c1a","user":{"login":"sirikfoll","id":11219553,"avatar_url":"https://avatars.githubusercontent.com/u/11219553?v=3","gravatar_id":"","url":"https://api.github.com/users/sirikfoll","html_url":"https://github.com/sirikfoll","followers_url":"https://api.github.com/users/sirikfoll/followers","following_url":"https://api.github.com/users/sirikfoll/following{/other_user}","gists_url":"https://api.github.com/users/sirikfoll/gists{/gist_id}","starred_url":"https://api.github.com/users/sirikfoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirikfoll/subscriptions","organizations_url":"https://api.github.com/users/sirikfoll/orgs","repos_url":"https://api.github.com/users/sirikfoll/repos","events_url":"https://api.github.com/users/sirikfoll/events{/privacy}","received_events_url":"https://api.github.com/users/sirikfoll/received_events","type":"User","site_admin":false},"repo":{"id":36338979,"name":"TrinityCore","full_name":"sirikfoll/TrinityCore","owner":{"login":"sirikfoll","id":11219553,"avatar_url":"https://avatars.githubusercontent.com/u/11219553?v=3","gravatar_id":"","url":"https://api.github.com/users/sirikfoll","html_url":"https://github.com/sirikfoll","followers_url":"https://api.github.com/users/sirikfoll/followers","following_url":"https://api.github.com/users/sirikfoll/following{/other_user}","gists_url":"https://api.github.com/users/sirikfoll/gists{/gist_id}","starred_url":"https://api.github.com/users/sirikfoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirikfoll/subscriptions","organizations_url":"https://api.github.com/users/sirikfoll/orgs","repos_url":"https://api.github.com/users/sirikfoll/repos","events_url":"https://api.github.com/users/sirikfoll/events{/privacy}","received_events_url":"https://api.github.com/users/sirikfoll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sirikfoll/TrinityCore","description":"TrinityCore Open Source MMO Framework","fork":true,"url":"https://api.github.com/repos/sirikfoll/TrinityCore","forks_url":"https://api.github.com/repos/sirikfoll/TrinityCore/forks","keys_url":"https://api.github.com/repos/sirikfoll/TrinityCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sirikfoll/TrinityCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sirikfoll/TrinityCore/teams","hooks_url":"https://api.github.com/repos/sirikfoll/TrinityCore/hooks","issue_events_url":"https://api.github.com/repos/sirikfoll/TrinityCore/issues/events{/number}","events_url":"https://api.github.com/repos/sirikfoll/TrinityCore/events","assignees_url":"https://api.github.com/repos/sirikfoll/TrinityCore/assignees{/user}","branches_url":"https://api.github.com/repos/sirikfoll/TrinityCore/branches{/branch}","tags_url":"https://api.github.com/repos/sirikfoll/TrinityCore/tags","blobs_url":"https://api.github.com/repos/sirikfoll/TrinityCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sirikfoll/TrinityCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sirikfoll/TrinityCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/sirikfoll/TrinityCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sirikfoll/TrinityCore/statuses/{sha}","languages_url":"https://api.github.com/repos/sirikfoll/TrinityCore/languages","stargazers_url":"https://api.github.com/repos/sirikfoll/TrinityCore/stargazers","contributors_url":"https://api.github.com/repos/sirikfoll/TrinityCore/contributors","subscribers_url":"https://api.github.com/repos/sirikfoll/TrinityCore/subscribers","subscription_url":"https://api.github.com/repos/sirikfoll/TrinityCore/subscription","commits_url":"https://api.github.com/repos/sirikfoll/TrinityCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/sirikfoll/TrinityCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/sirikfoll/TrinityCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/sirikfoll/TrinityCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/sirikfoll/TrinityCore/contents/{+path}","compare_url":"https://api.github.com/repos/sirikfoll/TrinityCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sirikfoll/TrinityCore/merges","archive_url":"https://api.github.com/repos/sirikfoll/TrinityCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sirikfoll/TrinityCore/downloads","issues_url":"https://api.github.com/repos/sirikfoll/TrinityCore/issues{/number}","pulls_url":"https://api.github.com/repos/sirikfoll/TrinityCore/pulls{/number}","milestones_url":"https://api.github.com/repos/sirikfoll/TrinityCore/milestones{/number}","notifications_url":"https://api.github.com/repos/sirikfoll/TrinityCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sirikfoll/TrinityCore/labels{/name}","releases_url":"https://api.github.com/repos/sirikfoll/TrinityCore/releases{/id}","created_at":"2015-05-27T02:59:39Z","updated_at":"2015-12-09T05:46:53Z","pushed_at":"2016-01-17T03:54:08Z","git_url":"git://github.com/sirikfoll/TrinityCore.git","ssh_url":"git@github.com:sirikfoll/TrinityCore.git","clone_url":"https://github.com/sirikfoll/TrinityCore.git","svn_url":"https://github.com/sirikfoll/TrinityCore","homepage":"http://www.trinitycore.org","size":347522,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"6.x"}},"base":{"label":"TrinityCore:3.3.5","ref":"3.3.5","sha":"696a66155b5c03daa6478f651bed949f5eca8b60","user":{"login":"TrinityCore","id":539602,"avatar_url":"https://avatars.githubusercontent.com/u/539602?v=3","gravatar_id":"","url":"https://api.github.com/users/TrinityCore","html_url":"https://github.com/TrinityCore","followers_url":"https://api.github.com/users/TrinityCore/followers","following_url":"https://api.github.com/users/TrinityCore/following{/other_user}","gists_url":"https://api.github.com/users/TrinityCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TrinityCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrinityCore/subscriptions","organizations_url":"https://api.github.com/users/TrinityCore/orgs","repos_url":"https://api.github.com/users/TrinityCore/repos","events_url":"https://api.github.com/users/TrinityCore/events{/privacy}","received_events_url":"https://api.github.com/users/TrinityCore/received_events","type":"Organization","site_admin":false},"repo":{"id":1204412,"name":"TrinityCore","full_name":"TrinityCore/TrinityCore","owner":{"login":"TrinityCore","id":539602,"avatar_url":"https://avatars.githubusercontent.com/u/539602?v=3","gravatar_id":"","url":"https://api.github.com/users/TrinityCore","html_url":"https://github.com/TrinityCore","followers_url":"https://api.github.com/users/TrinityCore/followers","following_url":"https://api.github.com/users/TrinityCore/following{/other_user}","gists_url":"https://api.github.com/users/TrinityCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TrinityCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrinityCore/subscriptions","organizations_url":"https://api.github.com/users/TrinityCore/orgs","repos_url":"https://api.github.com/users/TrinityCore/repos","events_url":"https://api.github.com/users/TrinityCore/events{/privacy}","received_events_url":"https://api.github.com/users/TrinityCore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TrinityCore/TrinityCore","description":"TrinityCore Open Source MMO Framework","fork":false,"url":"https://api.github.com/repos/TrinityCore/TrinityCore","forks_url":"https://api.github.com/repos/TrinityCore/TrinityCore/forks","keys_url":"https://api.github.com/repos/TrinityCore/TrinityCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrinityCore/TrinityCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrinityCore/TrinityCore/teams","hooks_url":"https://api.github.com/repos/TrinityCore/TrinityCore/hooks","issue_events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/events{/number}","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/events","assignees_url":"https://api.github.com/repos/TrinityCore/TrinityCore/assignees{/user}","branches_url":"https://api.github.com/repos/TrinityCore/TrinityCore/branches{/branch}","tags_url":"https://api.github.com/repos/TrinityCore/TrinityCore/tags","blobs_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrinityCore/TrinityCore/statuses/{sha}","languages_url":"https://api.github.com/repos/TrinityCore/TrinityCore/languages","stargazers_url":"https://api.github.com/repos/TrinityCore/TrinityCore/stargazers","contributors_url":"https://api.github.com/repos/TrinityCore/TrinityCore/contributors","subscribers_url":"https://api.github.com/repos/TrinityCore/TrinityCore/subscribers","subscription_url":"https://api.github.com/repos/TrinityCore/TrinityCore/subscription","commits_url":"https://api.github.com/repos/TrinityCore/TrinityCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrinityCore/TrinityCore/contents/{+path}","compare_url":"https://api.github.com/repos/TrinityCore/TrinityCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrinityCore/TrinityCore/merges","archive_url":"https://api.github.com/repos/TrinityCore/TrinityCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrinityCore/TrinityCore/downloads","issues_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues{/number}","pulls_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls{/number}","milestones_url":"https://api.github.com/repos/TrinityCore/TrinityCore/milestones{/number}","notifications_url":"https://api.github.com/repos/TrinityCore/TrinityCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels{/name}","releases_url":"https://api.github.com/repos/TrinityCore/TrinityCore/releases{/id}","created_at":"2010-12-28T23:40:07Z","updated_at":"2016-01-15T11:45:17Z","pushed_at":"2016-01-17T03:54:10Z","git_url":"git://github.com/TrinityCore/TrinityCore.git","ssh_url":"git@github.com:TrinityCore/TrinityCore.git","clone_url":"https://github.com/TrinityCore/TrinityCore.git","svn_url":"https://github.com/TrinityCore/TrinityCore","homepage":"http://www.trinitycore.org","size":754842,"stargazers_count":3091,"watchers_count":3091,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3237,"mirror_url":null,"open_issues_count":1325,"forks":3237,"open_issues":1325,"watchers":3091,"default_branch":"6.x"}},"_links":{"self":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262"},"html":{"href":"https://github.com/TrinityCore/TrinityCore/pull/16262"},"issue":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16262"},"comments":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16262/comments"},"review_comments":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262/comments"},"review_comment":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16262/commits"},"statuses":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/statuses/8b74038531ffec2d809083fa73ad29ec693d7c1a"}}}}