{"action":"opened","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/224","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/224/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/224/events","html_url":"https://github.com/chrsmith/bwapi/issues/224","id":59189398,"number":224,"title":"Some unit deaths/removals being missed?","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/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-27T04:49:42Z","updated_at":"2015-02-27T04:49:42Z","closed_at":"2015-02-27T04:49:42Z","body":"```\nOn IRC krasi0 reported that some unit IDs are still being reused (specifically \ndepleted mineral patches). I bet mineral patches don't generate any death \nanimation, and since they are invincible the HP check is ignored, so perhaps we \nneed to check for unit->getType()==Mineral Patch && unit->getResources() == 0 \nto detect its removal.\n```\n\nOriginal issue reported on code.google.com by `lowerlo...@gmail.com` on 11 Jun 2010 at 11:42"}}