{"action":"created","comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/37722364","id":37722364,"diff_hunk":"@@ -541,6 +541,18 @@ BattlePokemon = (function () {\n \t\t\t\ttarget = this.battle.runEvent('RedirectTarget', this, this, move, target);\n \t\t\t}\n \t\t\ttargets = [target];\n+\n+\t\t\t// Resolve apparent targets for Pressure.\n+\t\t\tif (move.pressureTarget) {","path":"battle-engine.js","position":6,"original_position":6,"commit_id":"1c70494e2b4a6756a02551c6e515484e2899a707","original_commit_id":"1c70494e2b4a6756a02551c6e515484e2899a707","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":"Because we don't want the \"targets\" that appear from `move.pressureTarget` to be first on the targets list. The `'self'` in `move.target` for Imprison/Snatch needs to come first so the system can account for everything Pressure-related properly while still officially targetting the user of the move.\r\n\r\nIt's a hack, it's all a hack. The only thing I can think of that would work otherwise is if we changed `move.target` to `'selfAndFoeSide'` and had a special handler for that?","created_at":"2015-08-24T06:32:11Z","updated_at":"2015-08-24T06:32:11Z","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2093#discussion_r37722364","pull_request_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2093","_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/37722364"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/2093#discussion_r37722364"},"pull_request":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2093"}}},"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2093","id":41392842,"html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2093","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2093.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/2093.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/2093","number":2093,"state":"open","locked":false,"title":"Fix Snatch and Imprison's interaction 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":"They're treated as foeSide moves for Pressure, but officially target\r\nthemselves.","created_at":"2015-08-01T00:43:00Z","updated_at":"2015-08-24T06:32:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"344fae3bf9f7da7940463efa51a9702bc7c69785","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/2093/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2093/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/2093/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/1c70494e2b4a6756a02551c6e515484e2899a707","head":{"label":"ascriptmaster:move-fixes-2","ref":"move-fixes-2","sha":"1c70494e2b4a6756a02551c6e515484e2899a707","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-08-24T00:56:09Z","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":46895,"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":"863f7d207106dca5d9267cf363546ee7a8fa3a23","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-08-20T00:02:44Z","pushed_at":"2015-08-23T13:15:50Z","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":97059,"stargazers_count":549,"watchers_count":549,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":733,"mirror_url":null,"open_issues_count":34,"forks":733,"open_issues":34,"watchers":549,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2093"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/2093"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/2093"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/2093/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/2093/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/2093/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/1c70494e2b4a6756a02551c6e515484e2899a707"}}}}