{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/197","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/197/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/197/events","html_url":"https://github.com/chrsmith/bwapi/issues/197","id":58380835,"number":197,"title":"Function which is called when units are morphed FROM.","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":2,"created_at":"2015-02-20T17:04:34Z","updated_at":"2015-02-20T17:04:35Z","closed_at":null,"body":"```\nIt would be very useful to have a function that BWAPI calls when units are \nmorphed FROM. Currently, onUnitMorph only takes the unit that is morphed \nTO. I think this is quite important, because without it, it seems \nimpossible to keep your own data structures for Zerg Drones and such, \nbecause you don't know when they morph into buildings and so on.\n\nI'd also request that when morphs are cancelled, like a Creep Colony \nmutation being cancelled, the function be called as well with the Creep \nColony as its argument.\n\nMaybe a workaround already exists. If anyone knows a nice workaround for \nthis, it would be greatly appreciated.\n```\n\n-----\nOriginal issue reported on code.google.com by `jonah.sc...@gmail.com` on 21 Feb 2010 at 8:25"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75275514","html_url":"https://github.com/chrsmith/bwapi/issues/197#issuecomment-75275514","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/197","id":75275514,"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-20T17:04:35Z","updated_at":"2015-02-20T17:04:35Z","body":"```\nYou are saying that the Unit* (that is, the Unit pointer) is precisely the same \nfor \nboth entities?\n```\n\n-----\nOriginal comment by `jonah.sc...@gmail.com` on 21 Feb 2010 at 9:18"}}