{"action":"opened","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/183","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/183/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/183/events","html_url":"https://github.com/chrsmith/bwapi/issues/183","id":58380764,"number":183,"title":"Unit::build(GeyserTile, Refinery) returns true even if Refinery is already built over Geyser","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-Logic","name":"Component-Logic","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-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T17:04:07Z","updated_at":"2015-02-20T17:04:07Z","closed_at":null,"body":"```\n  bool  GameImpl::canBuildHere(Unit* builder, TilePosition position, \nUnitType type)\n  {\n....\n    if (type.isRefinery())\n    {\n      foreach (Unit* g, getGeysers())\n      {\n        if (g->getTilePosition() == position)\n        {\n          this->setLastError(Errors::None);\n          return true;\n        }\n      }\n      return false;\n    }\n.....\n```\n\n-----\nOriginal issue reported on code.google.com by `tin...@gmail.com` on 14 Jan 2010 at 12:19"}}