{"action":"created","comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments/57372320","id":57372320,"diff_hunk":"@@ -631,6 +633,9 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma\n         virtual uint8 GetPetAutoSpellSize() const { return MAX_SPELL_CHARM; }\n         virtual uint32 GetPetAutoSpellOnPos(uint8 pos) const;\n \n+        void SetCannotReachTarget(bool cannotReach) { if (cannotReach == m_cannotReachTarget) return; m_cannotReachTarget = cannotReach; m_cannotReachTimer = 0; }","path":"src/server/game/Entities/Creature/Creature.h","position":49,"original_position":49,"commit_id":"7e6caf4a1ef0313cfdd024aacd649797fba21924","original_commit_id":"7e6caf4a1ef0313cfdd024aacd649797fba21924","user":{"login":"jackpoz","id":1153754,"avatar_url":"https://avatars.githubusercontent.com/u/1153754?v=3","gravatar_id":"","url":"https://api.github.com/users/jackpoz","html_url":"https://github.com/jackpoz","followers_url":"https://api.github.com/users/jackpoz/followers","following_url":"https://api.github.com/users/jackpoz/following{/other_user}","gists_url":"https://api.github.com/users/jackpoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jackpoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackpoz/subscriptions","organizations_url":"https://api.github.com/users/jackpoz/orgs","repos_url":"https://api.github.com/users/jackpoz/repos","events_url":"https://api.github.com/users/jackpoz/events{/privacy}","received_events_url":"https://api.github.com/users/jackpoz/received_events","type":"User","site_admin":false},"body":"could you please move each statement on its own line to make it debuggable ?","created_at":"2016-03-24T19:14:21Z","updated_at":"2016-03-24T19:14:21Z","html_url":"https://github.com/TrinityCore/TrinityCore/pull/16834#discussion_r57372320","pull_request_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834","_links":{"self":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments/57372320"},"html":{"href":"https://github.com/TrinityCore/TrinityCore/pull/16834#discussion_r57372320"},"pull_request":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834"}}},"pull_request":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834","id":64048474,"html_url":"https://github.com/TrinityCore/TrinityCore/pull/16834","diff_url":"https://github.com/TrinityCore/TrinityCore/pull/16834.diff","patch_url":"https://github.com/TrinityCore/TrinityCore/pull/16834.patch","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16834","number":16834,"state":"open","locked":false,"title":"[3.3.5] Entities/Unit: Finally fix no-path evasion","user":{"login":"Treeston","id":14020072,"avatar_url":"https://avatars.githubusercontent.com/u/14020072?v=3","gravatar_id":"","url":"https://api.github.com/users/Treeston","html_url":"https://github.com/Treeston","followers_url":"https://api.github.com/users/Treeston/followers","following_url":"https://api.github.com/users/Treeston/following{/other_user}","gists_url":"https://api.github.com/users/Treeston/gists{/gist_id}","starred_url":"https://api.github.com/users/Treeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treeston/subscriptions","organizations_url":"https://api.github.com/users/Treeston/orgs","repos_url":"https://api.github.com/users/Treeston/repos","events_url":"https://api.github.com/users/Treeston/events{/privacy}","received_events_url":"https://api.github.com/users/Treeston/received_events","type":"User","site_admin":false},"body":"Entities/Unit: Finally fix no-path evasion\r\n- When a creature cannot find a path to its victim, it begins evading all attacks and regenerating health.\r\n- If this persists for 5 seconds, it evades back to spawn position with new EvadeReason value EVADE_REASON_NO_PATH.\r\n- Also some SmartAI cleanup (why oh why does it have so much duplicated code) and getting rid of #defines in favor of type-checked compile-time constants.\r\n\r\nPS: Sorry for fixing your favorite bug, you know who you are.","created_at":"2016-03-24T15:13:55Z","updated_at":"2016-03-24T19:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"571e949fc08e363993834dde75e6ddd6b91e1a17","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834/commits","review_comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834/comments","review_comment_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16834/comments","statuses_url":"https://api.github.com/repos/TrinityCore/TrinityCore/statuses/7e6caf4a1ef0313cfdd024aacd649797fba21924","head":{"label":"Treeston:3.3.5-evademore","ref":"3.3.5-evademore","sha":"7e6caf4a1ef0313cfdd024aacd649797fba21924","user":{"login":"Treeston","id":14020072,"avatar_url":"https://avatars.githubusercontent.com/u/14020072?v=3","gravatar_id":"","url":"https://api.github.com/users/Treeston","html_url":"https://github.com/Treeston","followers_url":"https://api.github.com/users/Treeston/followers","following_url":"https://api.github.com/users/Treeston/following{/other_user}","gists_url":"https://api.github.com/users/Treeston/gists{/gist_id}","starred_url":"https://api.github.com/users/Treeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treeston/subscriptions","organizations_url":"https://api.github.com/users/Treeston/orgs","repos_url":"https://api.github.com/users/Treeston/repos","events_url":"https://api.github.com/users/Treeston/events{/privacy}","received_events_url":"https://api.github.com/users/Treeston/received_events","type":"User","site_admin":false},"repo":{"id":42188757,"name":"TrinityCore","full_name":"Treeston/TrinityCore","owner":{"login":"Treeston","id":14020072,"avatar_url":"https://avatars.githubusercontent.com/u/14020072?v=3","gravatar_id":"","url":"https://api.github.com/users/Treeston","html_url":"https://github.com/Treeston","followers_url":"https://api.github.com/users/Treeston/followers","following_url":"https://api.github.com/users/Treeston/following{/other_user}","gists_url":"https://api.github.com/users/Treeston/gists{/gist_id}","starred_url":"https://api.github.com/users/Treeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treeston/subscriptions","organizations_url":"https://api.github.com/users/Treeston/orgs","repos_url":"https://api.github.com/users/Treeston/repos","events_url":"https://api.github.com/users/Treeston/events{/privacy}","received_events_url":"https://api.github.com/users/Treeston/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Treeston/TrinityCore","description":"TrinityCore Open Source MMO Framework","fork":true,"url":"https://api.github.com/repos/Treeston/TrinityCore","forks_url":"https://api.github.com/repos/Treeston/TrinityCore/forks","keys_url":"https://api.github.com/repos/Treeston/TrinityCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Treeston/TrinityCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Treeston/TrinityCore/teams","hooks_url":"https://api.github.com/repos/Treeston/TrinityCore/hooks","issue_events_url":"https://api.github.com/repos/Treeston/TrinityCore/issues/events{/number}","events_url":"https://api.github.com/repos/Treeston/TrinityCore/events","assignees_url":"https://api.github.com/repos/Treeston/TrinityCore/assignees{/user}","branches_url":"https://api.github.com/repos/Treeston/TrinityCore/branches{/branch}","tags_url":"https://api.github.com/repos/Treeston/TrinityCore/tags","blobs_url":"https://api.github.com/repos/Treeston/TrinityCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Treeston/TrinityCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Treeston/TrinityCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Treeston/TrinityCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Treeston/TrinityCore/statuses/{sha}","languages_url":"https://api.github.com/repos/Treeston/TrinityCore/languages","stargazers_url":"https://api.github.com/repos/Treeston/TrinityCore/stargazers","contributors_url":"https://api.github.com/repos/Treeston/TrinityCore/contributors","subscribers_url":"https://api.github.com/repos/Treeston/TrinityCore/subscribers","subscription_url":"https://api.github.com/repos/Treeston/TrinityCore/subscription","commits_url":"https://api.github.com/repos/Treeston/TrinityCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Treeston/TrinityCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Treeston/TrinityCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Treeston/TrinityCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Treeston/TrinityCore/contents/{+path}","compare_url":"https://api.github.com/repos/Treeston/TrinityCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Treeston/TrinityCore/merges","archive_url":"https://api.github.com/repos/Treeston/TrinityCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Treeston/TrinityCore/downloads","issues_url":"https://api.github.com/repos/Treeston/TrinityCore/issues{/number}","pulls_url":"https://api.github.com/repos/Treeston/TrinityCore/pulls{/number}","milestones_url":"https://api.github.com/repos/Treeston/TrinityCore/milestones{/number}","notifications_url":"https://api.github.com/repos/Treeston/TrinityCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Treeston/TrinityCore/labels{/name}","releases_url":"https://api.github.com/repos/Treeston/TrinityCore/releases{/id}","deployments_url":"https://api.github.com/repos/Treeston/TrinityCore/deployments","created_at":"2015-09-09T15:54:20Z","updated_at":"2016-01-14T10:45:36Z","pushed_at":"2016-03-24T17:15:36Z","git_url":"git://github.com/Treeston/TrinityCore.git","ssh_url":"git@github.com:Treeston/TrinityCore.git","clone_url":"https://github.com/Treeston/TrinityCore.git","svn_url":"https://github.com/Treeston/TrinityCore","homepage":"http://www.trinitycore.org","size":358886,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"3.3.5"}},"base":{"label":"TrinityCore:3.3.5","ref":"3.3.5","sha":"c9751eb1f822df6a92b7820328a7b7f025d0c997","user":{"login":"TrinityCore","id":539602,"avatar_url":"https://avatars.githubusercontent.com/u/539602?v=3","gravatar_id":"","url":"https://api.github.com/users/TrinityCore","html_url":"https://github.com/TrinityCore","followers_url":"https://api.github.com/users/TrinityCore/followers","following_url":"https://api.github.com/users/TrinityCore/following{/other_user}","gists_url":"https://api.github.com/users/TrinityCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TrinityCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrinityCore/subscriptions","organizations_url":"https://api.github.com/users/TrinityCore/orgs","repos_url":"https://api.github.com/users/TrinityCore/repos","events_url":"https://api.github.com/users/TrinityCore/events{/privacy}","received_events_url":"https://api.github.com/users/TrinityCore/received_events","type":"Organization","site_admin":false},"repo":{"id":1204412,"name":"TrinityCore","full_name":"TrinityCore/TrinityCore","owner":{"login":"TrinityCore","id":539602,"avatar_url":"https://avatars.githubusercontent.com/u/539602?v=3","gravatar_id":"","url":"https://api.github.com/users/TrinityCore","html_url":"https://github.com/TrinityCore","followers_url":"https://api.github.com/users/TrinityCore/followers","following_url":"https://api.github.com/users/TrinityCore/following{/other_user}","gists_url":"https://api.github.com/users/TrinityCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TrinityCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrinityCore/subscriptions","organizations_url":"https://api.github.com/users/TrinityCore/orgs","repos_url":"https://api.github.com/users/TrinityCore/repos","events_url":"https://api.github.com/users/TrinityCore/events{/privacy}","received_events_url":"https://api.github.com/users/TrinityCore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TrinityCore/TrinityCore","description":"TrinityCore Open Source MMO Framework","fork":false,"url":"https://api.github.com/repos/TrinityCore/TrinityCore","forks_url":"https://api.github.com/repos/TrinityCore/TrinityCore/forks","keys_url":"https://api.github.com/repos/TrinityCore/TrinityCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrinityCore/TrinityCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrinityCore/TrinityCore/teams","hooks_url":"https://api.github.com/repos/TrinityCore/TrinityCore/hooks","issue_events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/events{/number}","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/events","assignees_url":"https://api.github.com/repos/TrinityCore/TrinityCore/assignees{/user}","branches_url":"https://api.github.com/repos/TrinityCore/TrinityCore/branches{/branch}","tags_url":"https://api.github.com/repos/TrinityCore/TrinityCore/tags","blobs_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrinityCore/TrinityCore/statuses/{sha}","languages_url":"https://api.github.com/repos/TrinityCore/TrinityCore/languages","stargazers_url":"https://api.github.com/repos/TrinityCore/TrinityCore/stargazers","contributors_url":"https://api.github.com/repos/TrinityCore/TrinityCore/contributors","subscribers_url":"https://api.github.com/repos/TrinityCore/TrinityCore/subscribers","subscription_url":"https://api.github.com/repos/TrinityCore/TrinityCore/subscription","commits_url":"https://api.github.com/repos/TrinityCore/TrinityCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrinityCore/TrinityCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrinityCore/TrinityCore/contents/{+path}","compare_url":"https://api.github.com/repos/TrinityCore/TrinityCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrinityCore/TrinityCore/merges","archive_url":"https://api.github.com/repos/TrinityCore/TrinityCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrinityCore/TrinityCore/downloads","issues_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues{/number}","pulls_url":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls{/number}","milestones_url":"https://api.github.com/repos/TrinityCore/TrinityCore/milestones{/number}","notifications_url":"https://api.github.com/repos/TrinityCore/TrinityCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels{/name}","releases_url":"https://api.github.com/repos/TrinityCore/TrinityCore/releases{/id}","deployments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/deployments","created_at":"2010-12-28T23:40:07Z","updated_at":"2016-03-24T16:22:24Z","pushed_at":"2016-03-24T18:26:43Z","git_url":"git://github.com/TrinityCore/TrinityCore.git","ssh_url":"git@github.com:TrinityCore/TrinityCore.git","clone_url":"https://github.com/TrinityCore/TrinityCore.git","svn_url":"https://github.com/TrinityCore/TrinityCore","homepage":"http://www.trinitycore.org","size":765281,"stargazers_count":3183,"watchers_count":3183,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3338,"mirror_url":null,"open_issues_count":1388,"forks":3338,"open_issues":1388,"watchers":3183,"default_branch":"6.x"}},"_links":{"self":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834"},"html":{"href":"https://github.com/TrinityCore/TrinityCore/pull/16834"},"issue":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16834"},"comments":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16834/comments"},"review_comments":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834/comments"},"review_comment":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/pulls/16834/commits"},"statuses":{"href":"https://api.github.com/repos/TrinityCore/TrinityCore/statuses/7e6caf4a1ef0313cfdd024aacd649797fba21924"}}}}