{"action":"created","comment":{"url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments/36036024","id":36036024,"diff_hunk":"@@ -0,0 +1,41 @@\n+---------------------------------------------------\n+-- Somnolence\n+---------------------------------------------------\n+\n+require(\"scripts/globals/settings\");\n+require(\"scripts/globals/status\");\n+require(\"scripts/globals/monstertpmoves\");\n+require(\"scripts/globals/magic\");\n+\n+---------------------------------------------------\n+\n+function onAbilityCheck(player, target, ability)\n+    return 0,0;\n+end;\n+\n+function onPetAbility(target, pet, skill)\n+    local spell = getSpell(165); --gave the ability the same power as Thunder II\n+    local dmg = calculateMagicDamage(178,1,pet,spell,target,ELEMENTAL_MAGIC_SKILL,MOD_INT,false);\n+    local dInt = pet:getStat(MOD_INT) - target:getStat(MOD_INT);\n+    local resist = applyPlayerResistance(pet,-1,target, dInt ,ELEMENTAL_MAGIC_SKILL, ELE_DARK);","path":"scripts/globals/abilities/pets/somnolence.lua","position":20,"original_position":20,"commit_id":"f723c59243561c7c3577ec9f3598913879dc000a","original_commit_id":"f723c59243561c7c3577ec9f3598913879dc000a","user":{"login":"TeoTwawki","id":6871475,"avatar_url":"https://avatars.githubusercontent.com/u/6871475?v=3","gravatar_id":"","url":"https://api.github.com/users/TeoTwawki","html_url":"https://github.com/TeoTwawki","followers_url":"https://api.github.com/users/TeoTwawki/followers","following_url":"https://api.github.com/users/TeoTwawki/following{/other_user}","gists_url":"https://api.github.com/users/TeoTwawki/gists{/gist_id}","starred_url":"https://api.github.com/users/TeoTwawki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeoTwawki/subscriptions","organizations_url":"https://api.github.com/users/TeoTwawki/orgs","repos_url":"https://api.github.com/users/TeoTwawki/repos","events_url":"https://api.github.com/users/TeoTwawki/events{/privacy}","received_events_url":"https://api.github.com/users/TeoTwawki/received_events","type":"User","site_admin":false},"body":"Your code is all squished making it hard to read but it looks like you variablized resist then  tossed that into another variable named gravResist and thats not needed because the original resist variable is never modified?? Gonna talk to you on IRC.","created_at":"2015-08-01T18:47:37Z","updated_at":"2015-08-01T18:47:37Z","html_url":"https://github.com/DarkstarProject/darkstar/pull/1839#discussion_r36036024","pull_request_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839","_links":{"self":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments/36036024"},"html":{"href":"https://github.com/DarkstarProject/darkstar/pull/1839#discussion_r36036024"},"pull_request":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839"}}},"pull_request":{"url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839","id":41401810,"html_url":"https://github.com/DarkstarProject/darkstar/pull/1839","diff_url":"https://github.com/DarkstarProject/darkstar/pull/1839.diff","patch_url":"https://github.com/DarkstarProject/darkstar/pull/1839.patch","issue_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/1839","number":1839,"state":"open","locked":false,"title":"SCRIPTS: Added Somnolence","user":{"login":"Zenny89","id":12732496,"avatar_url":"https://avatars.githubusercontent.com/u/12732496?v=3","gravatar_id":"","url":"https://api.github.com/users/Zenny89","html_url":"https://github.com/Zenny89","followers_url":"https://api.github.com/users/Zenny89/followers","following_url":"https://api.github.com/users/Zenny89/following{/other_user}","gists_url":"https://api.github.com/users/Zenny89/gists{/gist_id}","starred_url":"https://api.github.com/users/Zenny89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zenny89/subscriptions","organizations_url":"https://api.github.com/users/Zenny89/orgs","repos_url":"https://api.github.com/users/Zenny89/repos","events_url":"https://api.github.com/users/Zenny89/events{/privacy}","received_events_url":"https://api.github.com/users/Zenny89/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-01T13:32:52Z","updated_at":"2015-08-01T18:47:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7646e1f86019775a261e1287b506ecc1185e19a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839/commits","review_comments_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839/comments","review_comment_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/1839/comments","statuses_url":"https://api.github.com/repos/DarkstarProject/darkstar/statuses/f723c59243561c7c3577ec9f3598913879dc000a","head":{"label":"Zenny89:master","ref":"master","sha":"f723c59243561c7c3577ec9f3598913879dc000a","user":{"login":"Zenny89","id":12732496,"avatar_url":"https://avatars.githubusercontent.com/u/12732496?v=3","gravatar_id":"","url":"https://api.github.com/users/Zenny89","html_url":"https://github.com/Zenny89","followers_url":"https://api.github.com/users/Zenny89/followers","following_url":"https://api.github.com/users/Zenny89/following{/other_user}","gists_url":"https://api.github.com/users/Zenny89/gists{/gist_id}","starred_url":"https://api.github.com/users/Zenny89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zenny89/subscriptions","organizations_url":"https://api.github.com/users/Zenny89/orgs","repos_url":"https://api.github.com/users/Zenny89/repos","events_url":"https://api.github.com/users/Zenny89/events{/privacy}","received_events_url":"https://api.github.com/users/Zenny89/received_events","type":"User","site_admin":false},"repo":{"id":39030511,"name":"darkstar","full_name":"Zenny89/darkstar","owner":{"login":"Zenny89","id":12732496,"avatar_url":"https://avatars.githubusercontent.com/u/12732496?v=3","gravatar_id":"","url":"https://api.github.com/users/Zenny89","html_url":"https://github.com/Zenny89","followers_url":"https://api.github.com/users/Zenny89/followers","following_url":"https://api.github.com/users/Zenny89/following{/other_user}","gists_url":"https://api.github.com/users/Zenny89/gists{/gist_id}","starred_url":"https://api.github.com/users/Zenny89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zenny89/subscriptions","organizations_url":"https://api.github.com/users/Zenny89/orgs","repos_url":"https://api.github.com/users/Zenny89/repos","events_url":"https://api.github.com/users/Zenny89/events{/privacy}","received_events_url":"https://api.github.com/users/Zenny89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zenny89/darkstar","description":"FFXI Server Emulator","fork":true,"url":"https://api.github.com/repos/Zenny89/darkstar","forks_url":"https://api.github.com/repos/Zenny89/darkstar/forks","keys_url":"https://api.github.com/repos/Zenny89/darkstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zenny89/darkstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zenny89/darkstar/teams","hooks_url":"https://api.github.com/repos/Zenny89/darkstar/hooks","issue_events_url":"https://api.github.com/repos/Zenny89/darkstar/issues/events{/number}","events_url":"https://api.github.com/repos/Zenny89/darkstar/events","assignees_url":"https://api.github.com/repos/Zenny89/darkstar/assignees{/user}","branches_url":"https://api.github.com/repos/Zenny89/darkstar/branches{/branch}","tags_url":"https://api.github.com/repos/Zenny89/darkstar/tags","blobs_url":"https://api.github.com/repos/Zenny89/darkstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zenny89/darkstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zenny89/darkstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zenny89/darkstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zenny89/darkstar/statuses/{sha}","languages_url":"https://api.github.com/repos/Zenny89/darkstar/languages","stargazers_url":"https://api.github.com/repos/Zenny89/darkstar/stargazers","contributors_url":"https://api.github.com/repos/Zenny89/darkstar/contributors","subscribers_url":"https://api.github.com/repos/Zenny89/darkstar/subscribers","subscription_url":"https://api.github.com/repos/Zenny89/darkstar/subscription","commits_url":"https://api.github.com/repos/Zenny89/darkstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zenny89/darkstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zenny89/darkstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zenny89/darkstar/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zenny89/darkstar/contents/{+path}","compare_url":"https://api.github.com/repos/Zenny89/darkstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zenny89/darkstar/merges","archive_url":"https://api.github.com/repos/Zenny89/darkstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zenny89/darkstar/downloads","issues_url":"https://api.github.com/repos/Zenny89/darkstar/issues{/number}","pulls_url":"https://api.github.com/repos/Zenny89/darkstar/pulls{/number}","milestones_url":"https://api.github.com/repos/Zenny89/darkstar/milestones{/number}","notifications_url":"https://api.github.com/repos/Zenny89/darkstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zenny89/darkstar/labels{/name}","releases_url":"https://api.github.com/repos/Zenny89/darkstar/releases{/id}","created_at":"2015-07-13T18:41:51Z","updated_at":"2015-07-13T18:42:04Z","pushed_at":"2015-08-01T13:54:38Z","git_url":"git://github.com/Zenny89/darkstar.git","ssh_url":"git@github.com:Zenny89/darkstar.git","clone_url":"https://github.com/Zenny89/darkstar.git","svn_url":"https://github.com/Zenny89/darkstar","homepage":"https://forums.dspt.info/index.php","size":128972,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"DarkstarProject:master","ref":"master","sha":"afbf60febbec4a860c4526340262d14e738c3af3","user":{"login":"DarkstarProject","id":6373714,"avatar_url":"https://avatars.githubusercontent.com/u/6373714?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkstarProject","html_url":"https://github.com/DarkstarProject","followers_url":"https://api.github.com/users/DarkstarProject/followers","following_url":"https://api.github.com/users/DarkstarProject/following{/other_user}","gists_url":"https://api.github.com/users/DarkstarProject/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkstarProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkstarProject/subscriptions","organizations_url":"https://api.github.com/users/DarkstarProject/orgs","repos_url":"https://api.github.com/users/DarkstarProject/repos","events_url":"https://api.github.com/users/DarkstarProject/events{/privacy}","received_events_url":"https://api.github.com/users/DarkstarProject/received_events","type":"Organization","site_admin":false},"repo":{"id":15814642,"name":"darkstar","full_name":"DarkstarProject/darkstar","owner":{"login":"DarkstarProject","id":6373714,"avatar_url":"https://avatars.githubusercontent.com/u/6373714?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkstarProject","html_url":"https://github.com/DarkstarProject","followers_url":"https://api.github.com/users/DarkstarProject/followers","following_url":"https://api.github.com/users/DarkstarProject/following{/other_user}","gists_url":"https://api.github.com/users/DarkstarProject/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkstarProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkstarProject/subscriptions","organizations_url":"https://api.github.com/users/DarkstarProject/orgs","repos_url":"https://api.github.com/users/DarkstarProject/repos","events_url":"https://api.github.com/users/DarkstarProject/events{/privacy}","received_events_url":"https://api.github.com/users/DarkstarProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DarkstarProject/darkstar","description":"FFXI Server Emulator","fork":false,"url":"https://api.github.com/repos/DarkstarProject/darkstar","forks_url":"https://api.github.com/repos/DarkstarProject/darkstar/forks","keys_url":"https://api.github.com/repos/DarkstarProject/darkstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DarkstarProject/darkstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DarkstarProject/darkstar/teams","hooks_url":"https://api.github.com/repos/DarkstarProject/darkstar/hooks","issue_events_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/events{/number}","events_url":"https://api.github.com/repos/DarkstarProject/darkstar/events","assignees_url":"https://api.github.com/repos/DarkstarProject/darkstar/assignees{/user}","branches_url":"https://api.github.com/repos/DarkstarProject/darkstar/branches{/branch}","tags_url":"https://api.github.com/repos/DarkstarProject/darkstar/tags","blobs_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DarkstarProject/darkstar/statuses/{sha}","languages_url":"https://api.github.com/repos/DarkstarProject/darkstar/languages","stargazers_url":"https://api.github.com/repos/DarkstarProject/darkstar/stargazers","contributors_url":"https://api.github.com/repos/DarkstarProject/darkstar/contributors","subscribers_url":"https://api.github.com/repos/DarkstarProject/darkstar/subscribers","subscription_url":"https://api.github.com/repos/DarkstarProject/darkstar/subscription","commits_url":"https://api.github.com/repos/DarkstarProject/darkstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/DarkstarProject/darkstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/comments{/number}","contents_url":"https://api.github.com/repos/DarkstarProject/darkstar/contents/{+path}","compare_url":"https://api.github.com/repos/DarkstarProject/darkstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DarkstarProject/darkstar/merges","archive_url":"https://api.github.com/repos/DarkstarProject/darkstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DarkstarProject/darkstar/downloads","issues_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues{/number}","pulls_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls{/number}","milestones_url":"https://api.github.com/repos/DarkstarProject/darkstar/milestones{/number}","notifications_url":"https://api.github.com/repos/DarkstarProject/darkstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DarkstarProject/darkstar/labels{/name}","releases_url":"https://api.github.com/repos/DarkstarProject/darkstar/releases{/id}","created_at":"2014-01-11T01:31:17Z","updated_at":"2015-07-26T14:44:09Z","pushed_at":"2015-08-01T13:54:38Z","git_url":"git://github.com/DarkstarProject/darkstar.git","ssh_url":"git@github.com:DarkstarProject/darkstar.git","clone_url":"https://github.com/DarkstarProject/darkstar.git","svn_url":"https://github.com/DarkstarProject/darkstar","homepage":"https://forums.dspt.info/index.php","size":209131,"stargazers_count":122,"watchers_count":122,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":223,"mirror_url":null,"open_issues_count":138,"forks":223,"open_issues":138,"watchers":122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839"},"html":{"href":"https://github.com/DarkstarProject/darkstar/pull/1839"},"issue":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/issues/1839"},"comments":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/issues/1839/comments"},"review_comments":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839/comments"},"review_comment":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/1839/commits"},"statuses":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/statuses/f723c59243561c7c3577ec9f3598913879dc000a"}}}}