{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/147","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/147/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/147/events","html_url":"https://github.com/chrsmith/bwapi/issues/147","id":58521042,"number":147,"title":"comsat scanner sweep problem","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"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-22T21:42:02Z","updated_at":"2015-02-22T21:42:02Z","closed_at":null,"body":"```\nWhat steps will reproduce the problem?\nstd::set<BWAPI::Unit*> centers=Broodwar->self()->getUnits();\nfor(std::set<BWAPI::Unit*>::iterator c=centers.begin();c!=centers.end\n();c++){\n\tif((*c)->getType()==BWAPI::UnitTypes::Terran_Command_Center && \n(*c)->isCompleted() && (*c)->getAddon()->isCompleted())\n\t{\n\t\tif((*c)->getAddon()->getEnergy()>=50)\n\t\t{\n\t\t\t(*c)->getAddon()->useTech\n(BWAPI::TechTypes::Scanner_Sweep,(*enemy)->getPosition());\n\t\t\tbreak;\n\t\t}\n\t}\n}\n\nthis, is my codes to using scanner sweep. but did not work.\nWhat is the expected output? What do you see instead?\ndetecting any cloaked,burrowed units\n\nWhat version of the product are you using? On what operating system?\nbwapi 2.3.1 , win xp pro sp3, vs2008express sp1\n\nPlease provide any additional information below.\nBWAPI::UnitTypes::Terran_Comsat_Station is also din't work.\n```\n\n-----\nOriginal issue reported on code.google.com by `gg.manag...@gmail.com` on 29 Nov 2009 at 9:45"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75462728","html_url":"https://github.com/chrsmith/bwapi/issues/147#issuecomment-75462728","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/147","id":75462728,"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:42:02Z","updated_at":"2015-02-22T21:42:02Z","body":"```\nFixed in r1665\n```\n\n-----\nOriginal comment by `lowerlo...@gmail.com` on 29 Nov 2009 at 11:08\n* Changed state: **Fixed**"}}