{"action":"created","comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/34558539","id":34558539,"diff_hunk":"@@ -492,6 +492,56 @@ BattlePokemon = (function () {\n \t\t}\n \t\treturn null;\n \t};\n+\tBattlePokemon.prototype.getMoveTargets = function (move, target) {\n+\t\tmove = this.battle.getMove(move);\n+\t\tvar targets = [];\n+\t\tswitch (move.target) {\n+\t\tcase 'all':\n+\t\tcase 'foeSide':\n+\t\tcase 'allySide':\n+\t\tcase 'allyTeam':\n+\t\t\tif (move.target.substr(0, 3) !== 'foe') {","path":"battle-engine.js","position":null,"original_position":12,"commit_id":"aee928da6b3b3236d33ffdfdaec6b1fe18a4e42b","original_commit_id":"68d1608ff4e79ada10aa3dfe81f755756f972d71","user":{"login":"Slayer95","id":4925744,"avatar_url":"https://avatars.githubusercontent.com/u/4925744?v=3","gravatar_id":"","url":"https://api.github.com/users/Slayer95","html_url":"https://github.com/Slayer95","followers_url":"https://api.github.com/users/Slayer95/followers","following_url":"https://api.github.com/users/Slayer95/following{/other_user}","gists_url":"https://api.github.com/users/Slayer95/gists{/gist_id}","starred_url":"https://api.github.com/users/Slayer95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slayer95/subscriptions","organizations_url":"https://api.github.com/users/Slayer95/orgs","repos_url":"https://api.github.com/users/Slayer95/repos","events_url":"https://api.github.com/users/Slayer95/events{/privacy}","received_events_url":"https://api.github.com/users/Slayer95/received_events","type":"User","site_admin":false},"body":"Style","created_at":"2015-07-14T11:28:37Z","updated_at":"2015-07-14T11:28:37Z","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2006#discussion_r34558539","pull_request_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006","_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/34558539"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/2006#discussion_r34558539"},"pull_request":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006"}}},"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006","id":38678685,"html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2006","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2006.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2006.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/2006","number":2006,"state":"open","locked":false,"title":"Fix PP deduction interactions with Pressure","user":{"login":"ascriptmaster","id":6027117,"avatar_url":"https://avatars.githubusercontent.com/u/6027117?v=3","gravatar_id":"","url":"https://api.github.com/users/ascriptmaster","html_url":"https://github.com/ascriptmaster","followers_url":"https://api.github.com/users/ascriptmaster/followers","following_url":"https://api.github.com/users/ascriptmaster/following{/other_user}","gists_url":"https://api.github.com/users/ascriptmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ascriptmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascriptmaster/subscriptions","organizations_url":"https://api.github.com/users/ascriptmaster/orgs","repos_url":"https://api.github.com/users/ascriptmaster/repos","events_url":"https://api.github.com/users/ascriptmaster/events{/privacy}","received_events_url":"https://api.github.com/users/ascriptmaster/received_events","type":"User","site_admin":false},"body":"Changed BattlePokemon#deductPP to accept multiple targets, and run the\r\nDeductPP event on each one.\r\n\r\nMoved the deductPP function call into useMove so it can accurately query\r\nall targets for the move instead of just one.\r\n\r\n---\r\n\r\nIt's an ugly solution, but it's the only one I could think of that would actually work...","created_at":"2015-06-26T18:53:50Z","updated_at":"2015-07-14T11:28:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2334d7ee6511df08025116e807a34537ed09c954","assignee":{"login":"Marty-D","id":1645989,"avatar_url":"https://avatars.githubusercontent.com/u/1645989?v=3","gravatar_id":"","url":"https://api.github.com/users/Marty-D","html_url":"https://github.com/Marty-D","followers_url":"https://api.github.com/users/Marty-D/followers","following_url":"https://api.github.com/users/Marty-D/following{/other_user}","gists_url":"https://api.github.com/users/Marty-D/gists{/gist_id}","starred_url":"https://api.github.com/users/Marty-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marty-D/subscriptions","organizations_url":"https://api.github.com/users/Marty-D/orgs","repos_url":"https://api.github.com/users/Marty-D/repos","events_url":"https://api.github.com/users/Marty-D/events{/privacy}","received_events_url":"https://api.github.com/users/Marty-D/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006/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/2006/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/aee928da6b3b3236d33ffdfdaec6b1fe18a4e42b","head":{"label":"ascriptmaster:move-fixes-2","ref":"move-fixes-2","sha":"aee928da6b3b3236d33ffdfdaec6b1fe18a4e42b","user":{"login":"ascriptmaster","id":6027117,"avatar_url":"https://avatars.githubusercontent.com/u/6027117?v=3","gravatar_id":"","url":"https://api.github.com/users/ascriptmaster","html_url":"https://github.com/ascriptmaster","followers_url":"https://api.github.com/users/ascriptmaster/followers","following_url":"https://api.github.com/users/ascriptmaster/following{/other_user}","gists_url":"https://api.github.com/users/ascriptmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ascriptmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascriptmaster/subscriptions","organizations_url":"https://api.github.com/users/ascriptmaster/orgs","repos_url":"https://api.github.com/users/ascriptmaster/repos","events_url":"https://api.github.com/users/ascriptmaster/events{/privacy}","received_events_url":"https://api.github.com/users/ascriptmaster/received_events","type":"User","site_admin":false},"repo":{"id":21549805,"name":"Pokemon-Showdown","full_name":"ascriptmaster/Pokemon-Showdown","owner":{"login":"ascriptmaster","id":6027117,"avatar_url":"https://avatars.githubusercontent.com/u/6027117?v=3","gravatar_id":"","url":"https://api.github.com/users/ascriptmaster","html_url":"https://github.com/ascriptmaster","followers_url":"https://api.github.com/users/ascriptmaster/followers","following_url":"https://api.github.com/users/ascriptmaster/following{/other_user}","gists_url":"https://api.github.com/users/ascriptmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ascriptmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascriptmaster/subscriptions","organizations_url":"https://api.github.com/users/ascriptmaster/orgs","repos_url":"https://api.github.com/users/ascriptmaster/repos","events_url":"https://api.github.com/users/ascriptmaster/events{/privacy}","received_events_url":"https://api.github.com/users/ascriptmaster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ascriptmaster/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":true,"url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown","forks_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/ascriptmaster/Pokemon-Showdown/releases{/id}","created_at":"2014-07-06T22:20:52Z","updated_at":"2015-04-13T18:35:33Z","pushed_at":"2015-07-14T11:22:35Z","git_url":"git://github.com/ascriptmaster/Pokemon-Showdown.git","ssh_url":"git@github.com:ascriptmaster/Pokemon-Showdown.git","clone_url":"https://github.com/ascriptmaster/Pokemon-Showdown.git","svn_url":"https://github.com/ascriptmaster/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":45221,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"Zarel:master","ref":"master","sha":"2d5609d1f8d07049527cac9a2df32ae68b4a985a","user":{"login":"Zarel","id":551184,"avatar_url":"https://avatars.githubusercontent.com/u/551184?v=3","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,"name":"Pokemon-Showdown","full_name":"Zarel/Pokemon-Showdown","owner":{"login":"Zarel","id":551184,"avatar_url":"https://avatars.githubusercontent.com/u/551184?v=3","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","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}","created_at":"2011-12-23T04:52:33Z","updated_at":"2015-07-10T21:11:58Z","pushed_at":"2015-07-14T11:22:36Z","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":93014,"stargazers_count":528,"watchers_count":528,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":709,"mirror_url":null,"open_issues_count":31,"forks":709,"open_issues":31,"watchers":528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/2006"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/2006"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/2006/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2006/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/2006/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/aee928da6b3b3236d33ffdfdaec6b1fe18a4e42b"}}}}