{"action":"created","comment":{"url":"https://api.github.com/repos/iTXTech/Genisys/pulls/comments/72901838","id":72901838,"diff_hunk":"@@ -303,4 +312,30 @@ public function useArmors(){\n \t\t}\n \t\treturn false;\n \t}\n+\n+\tpublic function createThornsDamage(){\n+\t\tif($this->thornsLevel !== []){\n+\t\t\t$this->thornsArmor = array_rand($this->thornsLevel);\n+\t\t\t$ThronsL = $this->thornsLevel[$this->thornsArmor];\n+\t\t\tif(mt_rand(1, 100) < $ThronsL * 15){\n+\t\t\t\t$this->thornsDamage = mt_rand(1, 4);\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\tpublic function getThornsDamage(){\n+\t\treturn $this->thornsDamage;\n+\t}\n+\n+\t/**\n+\t * @return bool should be used after getThornsDamage()\n+\t */\n+\tpublic function setThornsArmorUse(){\n+\t\tif($this->thornsArmor === unll){","path":"src/pocketmine/event/entity/EntityDamageEvent.php","position":143,"original_position":143,"commit_id":"2db001e7f4b8ef3f638af94a5474cf867a3ebc97","original_commit_id":"2db001e7f4b8ef3f638af94a5474cf867a3ebc97","user":{"login":"dktapps","id":14214667,"avatar_url":"https://avatars.githubusercontent.com/u/14214667?v=3","gravatar_id":"","url":"https://api.github.com/users/dktapps","html_url":"https://github.com/dktapps","followers_url":"https://api.github.com/users/dktapps/followers","following_url":"https://api.github.com/users/dktapps/following{/other_user}","gists_url":"https://api.github.com/users/dktapps/gists{/gist_id}","starred_url":"https://api.github.com/users/dktapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dktapps/subscriptions","organizations_url":"https://api.github.com/users/dktapps/orgs","repos_url":"https://api.github.com/users/dktapps/repos","events_url":"https://api.github.com/users/dktapps/events{/privacy}","received_events_url":"https://api.github.com/users/dktapps/received_events","type":"User","site_admin":false},"body":"What? you mean `null`?","created_at":"2016-07-31T10:16:44Z","updated_at":"2016-07-31T10:16:44Z","html_url":"https://github.com/iTXTech/Genisys/pull/1539#discussion_r72901838","pull_request_url":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539","_links":{"self":{"href":"https://api.github.com/repos/iTXTech/Genisys/pulls/comments/72901838"},"html":{"href":"https://github.com/iTXTech/Genisys/pull/1539#discussion_r72901838"},"pull_request":{"href":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539"}}},"pull_request":{"url":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539","id":78964355,"html_url":"https://github.com/iTXTech/Genisys/pull/1539","diff_url":"https://github.com/iTXTech/Genisys/pull/1539.diff","patch_url":"https://github.com/iTXTech/Genisys/pull/1539.patch","issue_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1539","number":1539,"state":"open","locked":false,"title":"Thorns enchantment - entity damage","user":{"login":"dog194","id":10290499,"avatar_url":"https://avatars.githubusercontent.com/u/10290499?v=3","gravatar_id":"","url":"https://api.github.com/users/dog194","html_url":"https://github.com/dog194","followers_url":"https://api.github.com/users/dog194/followers","following_url":"https://api.github.com/users/dog194/following{/other_user}","gists_url":"https://api.github.com/users/dog194/gists{/gist_id}","starred_url":"https://api.github.com/users/dog194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dog194/subscriptions","organizations_url":"https://api.github.com/users/dog194/orgs","repos_url":"https://api.github.com/users/dog194/repos","events_url":"https://api.github.com/users/dog194/events{/privacy}","received_events_url":"https://api.github.com/users/dog194/received_events","type":"User","site_admin":false},"body":"### Description\r\n<!-- What's this PR for? -->\r\nFor Throns enchantment\r\nFor more work for your CPU :(\r\n\r\n### Reason to modify\r\n<!-- Think twice before modifying: is it the best way? will it break things? \r\nHave you made sure that there is actually a problem before trying to fix it? -->\r\nI donot know\r\n\r\n### Tests & Reviews\r\n<!-- Uncomment based on the situation -->\r\nno test, I only have one mobile phone. \r\nSo... need to be tested\r\n<!-- I have tested the code and it works. -->\r\n\r\n<!-- Please review things below: -->\r\n\r\nentity attack part of Throns","created_at":"2016-07-27T04:39:57Z","updated_at":"2016-07-31T10:16:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"358b899c6682257fc0e58d8a18e313ce90ab234d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539/commits","review_comments_url":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539/comments","review_comment_url":"https://api.github.com/repos/iTXTech/Genisys/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1539/comments","statuses_url":"https://api.github.com/repos/iTXTech/Genisys/statuses/2db001e7f4b8ef3f638af94a5474cf867a3ebc97","head":{"label":"iTXTech:Throns-part-one","ref":"Throns-part-one","sha":"2db001e7f4b8ef3f638af94a5474cf867a3ebc97","user":{"login":"iTXTech","id":15979485,"avatar_url":"https://avatars.githubusercontent.com/u/15979485?v=3","gravatar_id":"","url":"https://api.github.com/users/iTXTech","html_url":"https://github.com/iTXTech","followers_url":"https://api.github.com/users/iTXTech/followers","following_url":"https://api.github.com/users/iTXTech/following{/other_user}","gists_url":"https://api.github.com/users/iTXTech/gists{/gist_id}","starred_url":"https://api.github.com/users/iTXTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTXTech/subscriptions","organizations_url":"https://api.github.com/users/iTXTech/orgs","repos_url":"https://api.github.com/users/iTXTech/repos","events_url":"https://api.github.com/users/iTXTech/events{/privacy}","received_events_url":"https://api.github.com/users/iTXTech/received_events","type":"Organization","site_admin":false},"repo":{"id":48602252,"name":"Genisys","full_name":"iTXTech/Genisys","owner":{"login":"iTXTech","id":15979485,"avatar_url":"https://avatars.githubusercontent.com/u/15979485?v=3","gravatar_id":"","url":"https://api.github.com/users/iTXTech","html_url":"https://github.com/iTXTech","followers_url":"https://api.github.com/users/iTXTech/followers","following_url":"https://api.github.com/users/iTXTech/following{/other_user}","gists_url":"https://api.github.com/users/iTXTech/gists{/gist_id}","starred_url":"https://api.github.com/users/iTXTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTXTech/subscriptions","organizations_url":"https://api.github.com/users/iTXTech/orgs","repos_url":"https://api.github.com/users/iTXTech/repos","events_url":"https://api.github.com/users/iTXTech/events{/privacy}","received_events_url":"https://api.github.com/users/iTXTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iTXTech/Genisys","description":"Feature-rich server software for Minecraft: Pocket Edition based on PocketMine-MP","fork":false,"url":"https://api.github.com/repos/iTXTech/Genisys","forks_url":"https://api.github.com/repos/iTXTech/Genisys/forks","keys_url":"https://api.github.com/repos/iTXTech/Genisys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iTXTech/Genisys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iTXTech/Genisys/teams","hooks_url":"https://api.github.com/repos/iTXTech/Genisys/hooks","issue_events_url":"https://api.github.com/repos/iTXTech/Genisys/issues/events{/number}","events_url":"https://api.github.com/repos/iTXTech/Genisys/events","assignees_url":"https://api.github.com/repos/iTXTech/Genisys/assignees{/user}","branches_url":"https://api.github.com/repos/iTXTech/Genisys/branches{/branch}","tags_url":"https://api.github.com/repos/iTXTech/Genisys/tags","blobs_url":"https://api.github.com/repos/iTXTech/Genisys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iTXTech/Genisys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iTXTech/Genisys/git/refs{/sha}","trees_url":"https://api.github.com/repos/iTXTech/Genisys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iTXTech/Genisys/statuses/{sha}","languages_url":"https://api.github.com/repos/iTXTech/Genisys/languages","stargazers_url":"https://api.github.com/repos/iTXTech/Genisys/stargazers","contributors_url":"https://api.github.com/repos/iTXTech/Genisys/contributors","subscribers_url":"https://api.github.com/repos/iTXTech/Genisys/subscribers","subscription_url":"https://api.github.com/repos/iTXTech/Genisys/subscription","commits_url":"https://api.github.com/repos/iTXTech/Genisys/commits{/sha}","git_commits_url":"https://api.github.com/repos/iTXTech/Genisys/git/commits{/sha}","comments_url":"https://api.github.com/repos/iTXTech/Genisys/comments{/number}","issue_comment_url":"https://api.github.com/repos/iTXTech/Genisys/issues/comments{/number}","contents_url":"https://api.github.com/repos/iTXTech/Genisys/contents/{+path}","compare_url":"https://api.github.com/repos/iTXTech/Genisys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iTXTech/Genisys/merges","archive_url":"https://api.github.com/repos/iTXTech/Genisys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iTXTech/Genisys/downloads","issues_url":"https://api.github.com/repos/iTXTech/Genisys/issues{/number}","pulls_url":"https://api.github.com/repos/iTXTech/Genisys/pulls{/number}","milestones_url":"https://api.github.com/repos/iTXTech/Genisys/milestones{/number}","notifications_url":"https://api.github.com/repos/iTXTech/Genisys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iTXTech/Genisys/labels{/name}","releases_url":"https://api.github.com/repos/iTXTech/Genisys/releases{/id}","deployments_url":"https://api.github.com/repos/iTXTech/Genisys/deployments","created_at":"2015-12-26T06:54:28Z","updated_at":"2016-07-31T02:29:50Z","pushed_at":"2016-07-31T08:30:33Z","git_url":"git://github.com/iTXTech/Genisys.git","ssh_url":"git@github.com:iTXTech/Genisys.git","clone_url":"https://github.com/iTXTech/Genisys.git","svn_url":"https://github.com/iTXTech/Genisys","homepage":"https://itxtech.org","size":6344,"stargazers_count":266,"watchers_count":266,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":216,"mirror_url":null,"open_issues_count":16,"forks":216,"open_issues":16,"watchers":266,"default_branch":"master"}},"base":{"label":"iTXTech:master","ref":"master","sha":"00656ef426d7cc274e553a958952bfc15ea72ac6","user":{"login":"iTXTech","id":15979485,"avatar_url":"https://avatars.githubusercontent.com/u/15979485?v=3","gravatar_id":"","url":"https://api.github.com/users/iTXTech","html_url":"https://github.com/iTXTech","followers_url":"https://api.github.com/users/iTXTech/followers","following_url":"https://api.github.com/users/iTXTech/following{/other_user}","gists_url":"https://api.github.com/users/iTXTech/gists{/gist_id}","starred_url":"https://api.github.com/users/iTXTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTXTech/subscriptions","organizations_url":"https://api.github.com/users/iTXTech/orgs","repos_url":"https://api.github.com/users/iTXTech/repos","events_url":"https://api.github.com/users/iTXTech/events{/privacy}","received_events_url":"https://api.github.com/users/iTXTech/received_events","type":"Organization","site_admin":false},"repo":{"id":48602252,"name":"Genisys","full_name":"iTXTech/Genisys","owner":{"login":"iTXTech","id":15979485,"avatar_url":"https://avatars.githubusercontent.com/u/15979485?v=3","gravatar_id":"","url":"https://api.github.com/users/iTXTech","html_url":"https://github.com/iTXTech","followers_url":"https://api.github.com/users/iTXTech/followers","following_url":"https://api.github.com/users/iTXTech/following{/other_user}","gists_url":"https://api.github.com/users/iTXTech/gists{/gist_id}","starred_url":"https://api.github.com/users/iTXTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTXTech/subscriptions","organizations_url":"https://api.github.com/users/iTXTech/orgs","repos_url":"https://api.github.com/users/iTXTech/repos","events_url":"https://api.github.com/users/iTXTech/events{/privacy}","received_events_url":"https://api.github.com/users/iTXTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iTXTech/Genisys","description":"Feature-rich server software for Minecraft: Pocket Edition based on PocketMine-MP","fork":false,"url":"https://api.github.com/repos/iTXTech/Genisys","forks_url":"https://api.github.com/repos/iTXTech/Genisys/forks","keys_url":"https://api.github.com/repos/iTXTech/Genisys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iTXTech/Genisys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iTXTech/Genisys/teams","hooks_url":"https://api.github.com/repos/iTXTech/Genisys/hooks","issue_events_url":"https://api.github.com/repos/iTXTech/Genisys/issues/events{/number}","events_url":"https://api.github.com/repos/iTXTech/Genisys/events","assignees_url":"https://api.github.com/repos/iTXTech/Genisys/assignees{/user}","branches_url":"https://api.github.com/repos/iTXTech/Genisys/branches{/branch}","tags_url":"https://api.github.com/repos/iTXTech/Genisys/tags","blobs_url":"https://api.github.com/repos/iTXTech/Genisys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iTXTech/Genisys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iTXTech/Genisys/git/refs{/sha}","trees_url":"https://api.github.com/repos/iTXTech/Genisys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iTXTech/Genisys/statuses/{sha}","languages_url":"https://api.github.com/repos/iTXTech/Genisys/languages","stargazers_url":"https://api.github.com/repos/iTXTech/Genisys/stargazers","contributors_url":"https://api.github.com/repos/iTXTech/Genisys/contributors","subscribers_url":"https://api.github.com/repos/iTXTech/Genisys/subscribers","subscription_url":"https://api.github.com/repos/iTXTech/Genisys/subscription","commits_url":"https://api.github.com/repos/iTXTech/Genisys/commits{/sha}","git_commits_url":"https://api.github.com/repos/iTXTech/Genisys/git/commits{/sha}","comments_url":"https://api.github.com/repos/iTXTech/Genisys/comments{/number}","issue_comment_url":"https://api.github.com/repos/iTXTech/Genisys/issues/comments{/number}","contents_url":"https://api.github.com/repos/iTXTech/Genisys/contents/{+path}","compare_url":"https://api.github.com/repos/iTXTech/Genisys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iTXTech/Genisys/merges","archive_url":"https://api.github.com/repos/iTXTech/Genisys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iTXTech/Genisys/downloads","issues_url":"https://api.github.com/repos/iTXTech/Genisys/issues{/number}","pulls_url":"https://api.github.com/repos/iTXTech/Genisys/pulls{/number}","milestones_url":"https://api.github.com/repos/iTXTech/Genisys/milestones{/number}","notifications_url":"https://api.github.com/repos/iTXTech/Genisys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iTXTech/Genisys/labels{/name}","releases_url":"https://api.github.com/repos/iTXTech/Genisys/releases{/id}","deployments_url":"https://api.github.com/repos/iTXTech/Genisys/deployments","created_at":"2015-12-26T06:54:28Z","updated_at":"2016-07-31T02:29:50Z","pushed_at":"2016-07-31T08:30:33Z","git_url":"git://github.com/iTXTech/Genisys.git","ssh_url":"git@github.com:iTXTech/Genisys.git","clone_url":"https://github.com/iTXTech/Genisys.git","svn_url":"https://github.com/iTXTech/Genisys","homepage":"https://itxtech.org","size":6344,"stargazers_count":266,"watchers_count":266,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":216,"mirror_url":null,"open_issues_count":16,"forks":216,"open_issues":16,"watchers":266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539"},"html":{"href":"https://github.com/iTXTech/Genisys/pull/1539"},"issue":{"href":"https://api.github.com/repos/iTXTech/Genisys/issues/1539"},"comments":{"href":"https://api.github.com/repos/iTXTech/Genisys/issues/1539/comments"},"review_comments":{"href":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539/comments"},"review_comment":{"href":"https://api.github.com/repos/iTXTech/Genisys/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iTXTech/Genisys/pulls/1539/commits"},"statuses":{"href":"https://api.github.com/repos/iTXTech/Genisys/statuses/2db001e7f4b8ef3f638af94a5474cf867a3ebc97"}}}}
{"actor":{"display_login":"dktapps"}}