{"action":"closed","issue":{"url":"https://api.github.com/repos/jasonhall/bwapi/issues/223","labels_url":"https://api.github.com/repos/jasonhall/bwapi/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/bwapi/issues/223/comments","events_url":"https://api.github.com/repos/jasonhall/bwapi/issues/223/events","html_url":"https://github.com/jasonhall/bwapi/issues/223","id":59427103,"number":223,"title":"Weapon Cooldown is always 0 for Reavers","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/jasonhall/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T00:54:17Z","updated_at":"2015-03-02T00:54:17Z","closed_at":"2015-03-02T00:54:17Z","body":"```\nSeems the weapon cooldown is always 0 and isStartingAttack() always false for \nreavers. Haven't noticed it with anything else. I'm running r2255.\n\nTested with:\nstd::set<BWAPI::Unit*> selectedUnits = BWAPI::Broodwar->getSelectedUnits();\nif(selectedUnits.size() == 1)\n{\n\tBWAPI::Unit* selected = *selectedUnits.begin();\n\tif(selected != NULL)\n\t{\n\t\tBWAPI::Broodwar->drawText(BWAPI::CoordinateType::Screen, 450, 45, \"Selected unit: %s\", selected->getType().getName().c_str());\n\n\t\tif(selected->isStartingAttack())\n\t\t\tBWAPI::Broodwar->drawText(BWAPI::CoordinateType::Screen, 450, 55, \"    - Starting Attack\");\n\t\telse\n\t\t\tBWAPI::Broodwar->drawText(BWAPI::CoordinateType::Screen, 450, 55, \"    - Not Starting Attack\");\n\n\t\tBWAPI::Broodwar->drawText(BWAPI::CoordinateType::Screen, 450, 65, \"    - Ground Cooldown: %d\", selected->getGroundWeaponCooldown());\n\t\tBWAPI::Broodwar->drawText(BWAPI::CoordinateType::Screen, 450, 75, \"    - Air Cooldown: %d\", selected->getAirWeaponCooldown());\n\t}\n}\n```\n\nOriginal issue reported on code.google.com by `quaver.smith` on 6 Jun 2010 at 12:37"}}