{"action":"created","comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments/137228460","pull_request_review_id":60866067,"id":137228460,"diff_hunk":"@@ -6467,11 +6467,13 @@ var Battle = (function () {\n \t\t\tpoke.removeVolatile('typeadd');\n \t\t\tpoke.removeVolatile('typechange');\n \n-\t\t\tvar newSpecies;\n-\t\t\tvar commaIndex = args[2].indexOf(',');\n-\t\t\tif (commaIndex === -1) {\n-\t\t\t\tnewSpecies = args[2];\n-\t\t\t} else {\n+\t\t\tvar newSpecies = args[2];\n+\t\t\tvar commaIndex = newSpecies.indexOf(',');\n+\t\t\tif (commaIndex !== -1) {\n+\t\t\t\tvar level = $.trim(newSpecies.substr(commaIndex + 1));\n+\t\t\t\tif (level.charAt(0) === 'L') {\n+\t\t\t\t\tpoke.level = +level.substr(1);","path":"js/battle.js","position":14,"original_position":14,"commit_id":"ca8d28af6074632ff53926f6b2919ff7a780c8df","original_commit_id":"ca8d28af6074632ff53926f6b2919ff7a780c8df","user":{"login":"Zarel","id":551184,"avatar_url":"https://avatars3.githubusercontent.com/u/551184?v=4","gravatar_id":"","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"body":"...this is `NaN` if the Pokémon has a gender.","created_at":"2017-09-06T10:23:13Z","updated_at":"2017-09-06T10:23:13Z","html_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/995#discussion_r137228460","pull_request_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments/137228460"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/995#discussion_r137228460"},"pull_request":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995"}}},"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995","id":139021224,"html_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/995","diff_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/995.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/995.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/995","number":995,"state":"closed","locked":false,"title":"Handle level changes in detailschange","user":{"login":"xfix","id":1297598,"avatar_url":"https://avatars2.githubusercontent.com/u/1297598?v=4","gravatar_id":"","url":"https://api.github.com/users/xfix","html_url":"https://github.com/xfix","followers_url":"https://api.github.com/users/xfix/followers","following_url":"https://api.github.com/users/xfix/following{/other_user}","gists_url":"https://api.github.com/users/xfix/gists{/gist_id}","starred_url":"https://api.github.com/users/xfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfix/subscriptions","organizations_url":"https://api.github.com/users/xfix/orgs","repos_url":"https://api.github.com/users/xfix/repos","events_url":"https://api.github.com/users/xfix/events{/privacy}","received_events_url":"https://api.github.com/users/xfix/received_events","type":"User","site_admin":false},"body":"Will be used for a secret project (staff link: http://www.smogon.com/forums/threads/3613633/).","created_at":"2017-09-02T18:02:40Z","updated_at":"2017-09-06T10:23:13Z","closed_at":"2017-09-03T08:47:16Z","merged_at":"2017-09-03T08:47:16Z","merge_commit_sha":"8d21bef5aee9465e185a3dc6a3d2bfd69a721da3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995/comments","review_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/995/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/statuses/ca8d28af6074632ff53926f6b2919ff7a780c8df","head":{"label":"xfix:level-details-change","ref":"level-details-change","sha":"ca8d28af6074632ff53926f6b2919ff7a780c8df","user":{"login":"xfix","id":1297598,"avatar_url":"https://avatars2.githubusercontent.com/u/1297598?v=4","gravatar_id":"","url":"https://api.github.com/users/xfix","html_url":"https://github.com/xfix","followers_url":"https://api.github.com/users/xfix/followers","following_url":"https://api.github.com/users/xfix/following{/other_user}","gists_url":"https://api.github.com/users/xfix/gists{/gist_id}","starred_url":"https://api.github.com/users/xfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfix/subscriptions","organizations_url":"https://api.github.com/users/xfix/orgs","repos_url":"https://api.github.com/users/xfix/repos","events_url":"https://api.github.com/users/xfix/events{/privacy}","received_events_url":"https://api.github.com/users/xfix/received_events","type":"User","site_admin":false},"repo":{"id":27631538,"name":"Pokemon-Showdown-Client","full_name":"xfix/Pokemon-Showdown-Client","owner":{"login":"xfix","id":1297598,"avatar_url":"https://avatars2.githubusercontent.com/u/1297598?v=4","gravatar_id":"","url":"https://api.github.com/users/xfix","html_url":"https://github.com/xfix","followers_url":"https://api.github.com/users/xfix/followers","following_url":"https://api.github.com/users/xfix/following{/other_user}","gists_url":"https://api.github.com/users/xfix/gists{/gist_id}","starred_url":"https://api.github.com/users/xfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfix/subscriptions","organizations_url":"https://api.github.com/users/xfix/orgs","repos_url":"https://api.github.com/users/xfix/repos","events_url":"https://api.github.com/users/xfix/events{/privacy}","received_events_url":"https://api.github.com/users/xfix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xfix/Pokemon-Showdown-Client","description":"The client for Pokémon Showdown","fork":true,"url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client","forks_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/forks","keys_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/teams","hooks_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/hooks","issue_events_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/issues/events{/number}","events_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/events","assignees_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/assignees{/user}","branches_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/branches{/branch}","tags_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/tags","blobs_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/statuses/{sha}","languages_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/languages","stargazers_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/stargazers","contributors_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/contributors","subscribers_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/subscribers","subscription_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/subscription","commits_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/contents/{+path}","compare_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/merges","archive_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/downloads","issues_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/issues{/number}","pulls_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/pulls{/number}","milestones_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/milestones{/number}","notifications_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/labels{/name}","releases_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/releases{/id}","deployments_url":"https://api.github.com/repos/xfix/Pokemon-Showdown-Client/deployments","created_at":"2014-12-06T11:05:42Z","updated_at":"2016-07-14T22:32:45Z","pushed_at":"2017-09-02T18:01:37Z","git_url":"git://github.com/xfix/Pokemon-Showdown-Client.git","ssh_url":"git@github.com:xfix/Pokemon-Showdown-Client.git","clone_url":"https://github.com/xfix/Pokemon-Showdown-Client.git","svn_url":"https://github.com/xfix/Pokemon-Showdown-Client","homepage":"http://pokemonshowdown.com","size":40586,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"tpp-micro"}},"base":{"label":"Zarel:master","ref":"master","sha":"49a6d8dcef7ff63c48801a68d9c14f90a9fd63a7","user":{"login":"Zarel","id":551184,"avatar_url":"https://avatars3.githubusercontent.com/u/551184?v=4","gravatar_id":"","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"repo":{"id":7786818,"name":"Pokemon-Showdown-Client","full_name":"Zarel/Pokemon-Showdown-Client","owner":{"login":"Zarel","id":551184,"avatar_url":"https://avatars3.githubusercontent.com/u/551184?v=4","gravatar_id":"","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zarel/Pokemon-Showdown-Client","description":"The client for Pokémon Showdown","fork":false,"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client","forks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/forks","keys_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/teams","hooks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/hooks","issue_events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/events{/number}","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/events","assignees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/assignees{/user}","branches_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/branches{/branch}","tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/tags","blobs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/statuses/{sha}","languages_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/languages","stargazers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/stargazers","contributors_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/contributors","subscribers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/subscribers","subscription_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/subscription","commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/contents/{+path}","compare_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/merges","archive_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/downloads","issues_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues{/number}","pulls_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls{/number}","milestones_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/milestones{/number}","notifications_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/labels{/name}","releases_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/releases{/id}","deployments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/deployments","created_at":"2013-01-24T00:09:53Z","updated_at":"2017-08-27T11:58:45Z","pushed_at":"2017-09-06T09:47:05Z","git_url":"git://github.com/Zarel/Pokemon-Showdown-Client.git","ssh_url":"git@github.com:Zarel/Pokemon-Showdown-Client.git","clone_url":"https://github.com/Zarel/Pokemon-Showdown-Client.git","svn_url":"https://github.com/Zarel/Pokemon-Showdown-Client","homepage":"http://pokemonshowdown.com","size":38422,"stargazers_count":157,"watchers_count":157,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":258,"mirror_url":null,"open_issues_count":37,"forks":258,"open_issues":37,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/995"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/995"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/995/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995/comments"},"review_comment":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/995/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/statuses/ca8d28af6074632ff53926f6b2919ff7a780c8df"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Zarel"}}