{"action":"opened","number":4894,"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/4894","id":221192590,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMTkyNTkw","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/4894","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/4894.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/4894.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/4894","number":4894,"state":"open","locked":false,"title":"Refactor lastAttackedBy to hurtBy","user":{"login":"bgsamm","id":8357867,"node_id":"MDQ6VXNlcjgzNTc4Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/8357867?v=4","gravatar_id":"","url":"https://api.github.com/users/bgsamm","html_url":"https://github.com/bgsamm","followers_url":"https://api.github.com/users/bgsamm/followers","following_url":"https://api.github.com/users/bgsamm/following{/other_user}","gists_url":"https://api.github.com/users/bgsamm/gists{/gist_id}","starred_url":"https://api.github.com/users/bgsamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgsamm/subscriptions","organizations_url":"https://api.github.com/users/bgsamm/orgs","repos_url":"https://api.github.com/users/bgsamm/repos","events_url":"https://api.github.com/users/bgsamm/events{/privacy}","received_events_url":"https://api.github.com/users/bgsamm/received_events","type":"User","site_admin":false},"body":"Messed up pretty bad with my last pull request and had to open a new one. I apologize, still getting used to git.\r\n\r\nOriginal description:\r\nReplaced the 'lastAttackedBy' attribute of a Pokemon with an array of attacks that the Pokemon has recently received. This corrects a bug in double battles arising from lastAttackedBy always getting replaced by the most recent attack, which caused Avalanche and Revenge to not double in power when they otherwise should have (e.g. see https://replay.pokemonshowdown.com/gen7doublescustomgame-796785834). This also addresses the corresponding task in #2444.","created_at":"2018-10-08T17:35:53Z","updated_at":"2018-10-08T17:35:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/4894/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/4894/comments","review_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/4894/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/84b175567770c8bedf9b26168b21fd4a72b95a2e","head":{"label":"bgsamm:refactor-lastattackedby","ref":"refactor-lastattackedby","sha":"84b175567770c8bedf9b26168b21fd4a72b95a2e","user":{"login":"bgsamm","id":8357867,"node_id":"MDQ6VXNlcjgzNTc4Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/8357867?v=4","gravatar_id":"","url":"https://api.github.com/users/bgsamm","html_url":"https://github.com/bgsamm","followers_url":"https://api.github.com/users/bgsamm/followers","following_url":"https://api.github.com/users/bgsamm/following{/other_user}","gists_url":"https://api.github.com/users/bgsamm/gists{/gist_id}","starred_url":"https://api.github.com/users/bgsamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgsamm/subscriptions","organizations_url":"https://api.github.com/users/bgsamm/orgs","repos_url":"https://api.github.com/users/bgsamm/repos","events_url":"https://api.github.com/users/bgsamm/events{/privacy}","received_events_url":"https://api.github.com/users/bgsamm/received_events","type":"User","site_admin":false},"repo":{"id":146356751,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzNTY3NTE=","name":"Pokemon-Showdown","full_name":"bgsamm/Pokemon-Showdown","private":false,"owner":{"login":"bgsamm","id":8357867,"node_id":"MDQ6VXNlcjgzNTc4Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/8357867?v=4","gravatar_id":"","url":"https://api.github.com/users/bgsamm","html_url":"https://github.com/bgsamm","followers_url":"https://api.github.com/users/bgsamm/followers","following_url":"https://api.github.com/users/bgsamm/following{/other_user}","gists_url":"https://api.github.com/users/bgsamm/gists{/gist_id}","starred_url":"https://api.github.com/users/bgsamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgsamm/subscriptions","organizations_url":"https://api.github.com/users/bgsamm/orgs","repos_url":"https://api.github.com/users/bgsamm/repos","events_url":"https://api.github.com/users/bgsamm/events{/privacy}","received_events_url":"https://api.github.com/users/bgsamm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bgsamm/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":true,"url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown","forks_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/releases{/id}","deployments_url":"https://api.github.com/repos/bgsamm/Pokemon-Showdown/deployments","created_at":"2018-08-27T21:32:17Z","updated_at":"2018-09-29T16:22:14Z","pushed_at":"2018-10-08T17:29:22Z","git_url":"git://github.com/bgsamm/Pokemon-Showdown.git","ssh_url":"git@github.com:bgsamm/Pokemon-Showdown.git","clone_url":"https://github.com/bgsamm/Pokemon-Showdown.git","svn_url":"https://github.com/bgsamm/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":69846,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Zarel:master","ref":"master","sha":"caa44a9262a61e0aab060da5d0059d331777202e","user":{"login":"Zarel","id":551184,"node_id":"MDQ6VXNlcjU1MTE4NA==","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":3038446,"node_id":"MDEwOlJlcG9zaXRvcnkzMDM4NDQ2","name":"Pokemon-Showdown","full_name":"Zarel/Pokemon-Showdown","private":false,"owner":{"login":"Zarel","id":551184,"node_id":"MDQ6VXNlcjU1MTE4NA==","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},"html_url":"https://github.com/Zarel/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":false,"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown","forks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/releases{/id}","deployments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/deployments","created_at":"2011-12-23T04:52:33Z","updated_at":"2018-10-08T17:14:11Z","pushed_at":"2018-10-08T17:13:57Z","git_url":"git://github.com/Zarel/Pokemon-Showdown.git","ssh_url":"git@github.com:Zarel/Pokemon-Showdown.git","clone_url":"https://github.com/Zarel/Pokemon-Showdown.git","svn_url":"https://github.com/Zarel/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":69885,"stargazers_count":1644,"watchers_count":1644,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1345,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1345,"open_issues":71,"watchers":1644,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/4894"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/4894"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/4894"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/4894/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/4894/comments"},"review_comment":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/4894/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/84b175567770c8bedf9b26168b21fd4a72b95a2e"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":51,"deletions":36,"changed_files":9}}
{"actor":{"display_login":"bgsamm"}}