{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/284","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/284/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/284/events","html_url":"https://github.com/chrsmith/bwapi/issues/284","id":58519253,"number":284,"title":"Change getTarget() behaviour or documentation","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Component-Docs","name":"Component-Docs","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Other","name":"Type-Other","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-22T21:16:22Z","updated_at":"2015-02-22T21:16:23Z","closed_at":null,"body":"```\nWhat steps will reproduce the problem?\n1. Issue Attack order on a unit\n2. Let the unit reach the enemy unit\n3. Check the results of unit->getTarget()\n\nWhat is the expected output? What do you see instead?\nI expect to get the pointer to enemy target. But I receive zero. (I printed the \nresult on screen near my unit, and when it reaches the enemy and start \nattacking it changes to zero)\n\nWhat version of the product are you using? On what operating system?\nBwapi 3.1.1. windows 7 64bit\n\nPlease provide any additional information below.\nIf I keep track of getordertarget() it gives the correct answer.\n\n```\n\n-----\nOriginal issue reported on code.google.com by `shantia....@gmail.com` on 29 Oct 2010 at 4:42"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75459818","html_url":"https://github.com/chrsmith/bwapi/issues/284#issuecomment-75459818","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/284","id":75459818,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T21:16:23Z","updated_at":"2015-02-22T21:16:23Z","body":"```\nThe value wont become zero when the unit is in range. It becomes zero when the \nunit starts attacking (at least it is what I see in frames). You should use the \nunit->getType weapon range to find that whether the unit is in attack range or \nnot. the issue is that the functions actions were different from what it was \nstated in the wiki. Either function change or description change is necessary.\n(I am using getordertraget at the moment to keep track of my current target)\n```\n\n-----\nOriginal comment by `shantia....@gmail.com` on 21 Nov 2010 at 4:34"}}