{"action":"created","comment":{"url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/comments/63573743","id":63573743,"diff_hunk":"@@ -187,7 +187,24 @@ function gadget:AllowWeaponTarget(unitID, targetID, attackerWeaponNum, attackerW\n \t\tdistAdd = (unitSaperation/WeaponDefs[attackerWeaponDefID].range) * 10\n \tend\n \t\n-\tlocal newPriority = hpAdd + defPrio + distAdd\n+\t\n+\tlocal grav=0 \n+\tif WeaponDefs[attackerWeaponDefID].customParams.impulse and \n+\t\tWeaponDefs[attackerWeaponDefID].damages[1]<=0.002 then\n+\t\tSpring.Echo(\"Newton weapon\")","path":"LuaRules/Gadgets/unit_target_priority.lua","position":9,"original_position":9,"commit_id":"323e6eb9553f3015db4fc0ceceec98ab5d17d95f","original_commit_id":"323e6eb9553f3015db4fc0ceceec98ab5d17d95f","user":{"login":"Anarchid","id":3822768,"avatar_url":"https://avatars.githubusercontent.com/u/3822768?v=3","gravatar_id":"","url":"https://api.github.com/users/Anarchid","html_url":"https://github.com/Anarchid","followers_url":"https://api.github.com/users/Anarchid/followers","following_url":"https://api.github.com/users/Anarchid/following{/other_user}","gists_url":"https://api.github.com/users/Anarchid/gists{/gist_id}","starred_url":"https://api.github.com/users/Anarchid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anarchid/subscriptions","organizations_url":"https://api.github.com/users/Anarchid/orgs","repos_url":"https://api.github.com/users/Anarchid/repos","events_url":"https://api.github.com/users/Anarchid/events{/privacy}","received_events_url":"https://api.github.com/users/Anarchid/received_events","type":"User","site_admin":false},"body":"That's going to make logs fun.","created_at":"2016-05-17T18:05:35Z","updated_at":"2016-05-17T18:05:35Z","html_url":"https://github.com/ZeroK-RTS/Zero-K/pull/1402#discussion_r63573743","pull_request_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402","_links":{"self":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/comments/63573743"},"html":{"href":"https://github.com/ZeroK-RTS/Zero-K/pull/1402#discussion_r63573743"},"pull_request":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402"}}},"pull_request":{"url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402","id":70385155,"html_url":"https://github.com/ZeroK-RTS/Zero-K/pull/1402","diff_url":"https://github.com/ZeroK-RTS/Zero-K/pull/1402.diff","patch_url":"https://github.com/ZeroK-RTS/Zero-K/pull/1402.patch","issue_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/1402","number":1402,"state":"open","locked":false,"title":"Made 1340. Now newton guns ignore nanoframes and attack light targets first","user":{"login":"N0U","id":4528910,"avatar_url":"https://avatars.githubusercontent.com/u/4528910?v=3","gravatar_id":"","url":"https://api.github.com/users/N0U","html_url":"https://github.com/N0U","followers_url":"https://api.github.com/users/N0U/followers","following_url":"https://api.github.com/users/N0U/following{/other_user}","gists_url":"https://api.github.com/users/N0U/gists{/gist_id}","starred_url":"https://api.github.com/users/N0U/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N0U/subscriptions","organizations_url":"https://api.github.com/users/N0U/orgs","repos_url":"https://api.github.com/users/N0U/repos","events_url":"https://api.github.com/users/N0U/events{/privacy}","received_events_url":"https://api.github.com/users/N0U/received_events","type":"User","site_admin":false},"body":"I don't know why it didn't linked: https://github.com/ZeroK-RTS/Zero-K/issues/1340\r\nI am not quite sure about filtering only newton guns. Is it enough or should I check all damages?","created_at":"2016-05-17T16:09:09Z","updated_at":"2016-05-17T18:05:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c092778254bb920f74f54dd02259f74396357601","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402/commits","review_comments_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402/comments","review_comment_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/1402/comments","statuses_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/statuses/323e6eb9553f3015db4fc0ceceec98ab5d17d95f","head":{"label":"N0U:master","ref":"master","sha":"323e6eb9553f3015db4fc0ceceec98ab5d17d95f","user":{"login":"N0U","id":4528910,"avatar_url":"https://avatars.githubusercontent.com/u/4528910?v=3","gravatar_id":"","url":"https://api.github.com/users/N0U","html_url":"https://github.com/N0U","followers_url":"https://api.github.com/users/N0U/followers","following_url":"https://api.github.com/users/N0U/following{/other_user}","gists_url":"https://api.github.com/users/N0U/gists{/gist_id}","starred_url":"https://api.github.com/users/N0U/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N0U/subscriptions","organizations_url":"https://api.github.com/users/N0U/orgs","repos_url":"https://api.github.com/users/N0U/repos","events_url":"https://api.github.com/users/N0U/events{/privacy}","received_events_url":"https://api.github.com/users/N0U/received_events","type":"User","site_admin":false},"repo":{"id":21551378,"name":"Zero-K","full_name":"N0U/Zero-K","owner":{"login":"N0U","id":4528910,"avatar_url":"https://avatars.githubusercontent.com/u/4528910?v=3","gravatar_id":"","url":"https://api.github.com/users/N0U","html_url":"https://github.com/N0U","followers_url":"https://api.github.com/users/N0U/followers","following_url":"https://api.github.com/users/N0U/following{/other_user}","gists_url":"https://api.github.com/users/N0U/gists{/gist_id}","starred_url":"https://api.github.com/users/N0U/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N0U/subscriptions","organizations_url":"https://api.github.com/users/N0U/orgs","repos_url":"https://api.github.com/users/N0U/repos","events_url":"https://api.github.com/users/N0U/events{/privacy}","received_events_url":"https://api.github.com/users/N0U/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/N0U/Zero-K","description":"Open source RTS game running on the Spring engine","fork":true,"url":"https://api.github.com/repos/N0U/Zero-K","forks_url":"https://api.github.com/repos/N0U/Zero-K/forks","keys_url":"https://api.github.com/repos/N0U/Zero-K/keys{/key_id}","collaborators_url":"https://api.github.com/repos/N0U/Zero-K/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/N0U/Zero-K/teams","hooks_url":"https://api.github.com/repos/N0U/Zero-K/hooks","issue_events_url":"https://api.github.com/repos/N0U/Zero-K/issues/events{/number}","events_url":"https://api.github.com/repos/N0U/Zero-K/events","assignees_url":"https://api.github.com/repos/N0U/Zero-K/assignees{/user}","branches_url":"https://api.github.com/repos/N0U/Zero-K/branches{/branch}","tags_url":"https://api.github.com/repos/N0U/Zero-K/tags","blobs_url":"https://api.github.com/repos/N0U/Zero-K/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/N0U/Zero-K/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/N0U/Zero-K/git/refs{/sha}","trees_url":"https://api.github.com/repos/N0U/Zero-K/git/trees{/sha}","statuses_url":"https://api.github.com/repos/N0U/Zero-K/statuses/{sha}","languages_url":"https://api.github.com/repos/N0U/Zero-K/languages","stargazers_url":"https://api.github.com/repos/N0U/Zero-K/stargazers","contributors_url":"https://api.github.com/repos/N0U/Zero-K/contributors","subscribers_url":"https://api.github.com/repos/N0U/Zero-K/subscribers","subscription_url":"https://api.github.com/repos/N0U/Zero-K/subscription","commits_url":"https://api.github.com/repos/N0U/Zero-K/commits{/sha}","git_commits_url":"https://api.github.com/repos/N0U/Zero-K/git/commits{/sha}","comments_url":"https://api.github.com/repos/N0U/Zero-K/comments{/number}","issue_comment_url":"https://api.github.com/repos/N0U/Zero-K/issues/comments{/number}","contents_url":"https://api.github.com/repos/N0U/Zero-K/contents/{+path}","compare_url":"https://api.github.com/repos/N0U/Zero-K/compare/{base}...{head}","merges_url":"https://api.github.com/repos/N0U/Zero-K/merges","archive_url":"https://api.github.com/repos/N0U/Zero-K/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/N0U/Zero-K/downloads","issues_url":"https://api.github.com/repos/N0U/Zero-K/issues{/number}","pulls_url":"https://api.github.com/repos/N0U/Zero-K/pulls{/number}","milestones_url":"https://api.github.com/repos/N0U/Zero-K/milestones{/number}","notifications_url":"https://api.github.com/repos/N0U/Zero-K/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/N0U/Zero-K/labels{/name}","releases_url":"https://api.github.com/repos/N0U/Zero-K/releases{/id}","deployments_url":"https://api.github.com/repos/N0U/Zero-K/deployments","created_at":"2014-07-07T00:19:38Z","updated_at":"2016-02-28T20:40:15Z","pushed_at":"2016-05-17T16:07:37Z","git_url":"git://github.com/N0U/Zero-K.git","ssh_url":"git@github.com:N0U/Zero-K.git","clone_url":"https://github.com/N0U/Zero-K.git","svn_url":"https://github.com/N0U/Zero-K","homepage":null,"size":426638,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"ZeroK-RTS:master","ref":"master","sha":"e55b8cd2e6900fb35d44e01b684f209e5f5af05f","user":{"login":"ZeroK-RTS","id":5145185,"avatar_url":"https://avatars.githubusercontent.com/u/5145185?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeroK-RTS","html_url":"https://github.com/ZeroK-RTS","followers_url":"https://api.github.com/users/ZeroK-RTS/followers","following_url":"https://api.github.com/users/ZeroK-RTS/following{/other_user}","gists_url":"https://api.github.com/users/ZeroK-RTS/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeroK-RTS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeroK-RTS/subscriptions","organizations_url":"https://api.github.com/users/ZeroK-RTS/orgs","repos_url":"https://api.github.com/users/ZeroK-RTS/repos","events_url":"https://api.github.com/users/ZeroK-RTS/events{/privacy}","received_events_url":"https://api.github.com/users/ZeroK-RTS/received_events","type":"Organization","site_admin":false},"repo":{"id":11837082,"name":"Zero-K","full_name":"ZeroK-RTS/Zero-K","owner":{"login":"ZeroK-RTS","id":5145185,"avatar_url":"https://avatars.githubusercontent.com/u/5145185?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeroK-RTS","html_url":"https://github.com/ZeroK-RTS","followers_url":"https://api.github.com/users/ZeroK-RTS/followers","following_url":"https://api.github.com/users/ZeroK-RTS/following{/other_user}","gists_url":"https://api.github.com/users/ZeroK-RTS/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeroK-RTS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeroK-RTS/subscriptions","organizations_url":"https://api.github.com/users/ZeroK-RTS/orgs","repos_url":"https://api.github.com/users/ZeroK-RTS/repos","events_url":"https://api.github.com/users/ZeroK-RTS/events{/privacy}","received_events_url":"https://api.github.com/users/ZeroK-RTS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ZeroK-RTS/Zero-K","description":"Open source RTS game running on the Spring engine","fork":false,"url":"https://api.github.com/repos/ZeroK-RTS/Zero-K","forks_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/forks","keys_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/teams","hooks_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/hooks","issue_events_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/events{/number}","events_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/events","assignees_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/assignees{/user}","branches_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/branches{/branch}","tags_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/tags","blobs_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/statuses/{sha}","languages_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/languages","stargazers_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/stargazers","contributors_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/contributors","subscribers_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/subscribers","subscription_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/subscription","commits_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/contents/{+path}","compare_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/merges","archive_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/downloads","issues_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues{/number}","pulls_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls{/number}","milestones_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/milestones{/number}","notifications_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/labels{/name}","releases_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/releases{/id}","deployments_url":"https://api.github.com/repos/ZeroK-RTS/Zero-K/deployments","created_at":"2013-08-02T06:57:00Z","updated_at":"2016-04-29T17:18:55Z","pushed_at":"2016-05-17T16:09:09Z","git_url":"git://github.com/ZeroK-RTS/Zero-K.git","ssh_url":"git@github.com:ZeroK-RTS/Zero-K.git","clone_url":"https://github.com/ZeroK-RTS/Zero-K.git","svn_url":"https://github.com/ZeroK-RTS/Zero-K","homepage":null,"size":432890,"stargazers_count":66,"watchers_count":66,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":117,"forks":47,"open_issues":117,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402"},"html":{"href":"https://github.com/ZeroK-RTS/Zero-K/pull/1402"},"issue":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/1402"},"comments":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/issues/1402/comments"},"review_comments":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402/comments"},"review_comment":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/pulls/1402/commits"},"statuses":{"href":"https://api.github.com/repos/ZeroK-RTS/Zero-K/statuses/323e6eb9553f3015db4fc0ceceec98ab5d17d95f"}}}}