{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/289","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/289/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/289/events","html_url":"https://github.com/chrsmith/bwapi/issues/289","id":58674722,"number":289,"title":"OnunitDestroy and onUnitCreate in the same frame","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T00:33:32Z","updated_at":"2015-02-24T00:33:33Z","closed_at":"2015-02-24T00:33:32Z","body":"```\nWhat steps will reproduce the problem?\n1. When the kill all command is triggered and some units are alive in that \nframe. And in the same frame the create unit command is triggered.\n2. These Triggers are made in the starcraft Map editor.\n\nMy trigger is as follow:\nIf current player commands 0 units:\nKill all units, and creat N zealots bor both players.\n\nWhat is the expected output? What do you see instead?\non each frame I am checking onUnitDestroy() if I see that a player commands 0 \nunits, I want to do some calculations with the amount of living units on the \nother side. But, the thing is the onUnitcreate() function is called before I \ncan do this calculation, and the information about the previous gameround is \nlost.\nI also tried to add a wait action in the triggers but it doesn't work. \n\nWhat version of the product are you using? On what operating system?\nBWAPI 3.2, Windows 7, MSVS 2008\n\nPlease provide any additional information below.\n\n```\n\n-----\nOriginal issue reported on code.google.com by `shantia....@gmail.com` on 9 Nov 2010 at 11:41"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75673659","html_url":"https://github.com/chrsmith/bwapi/issues/289#issuecomment-75673659","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/289","id":75673659,"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-24T00:33:33Z","updated_at":"2015-02-24T00:33:33Z","body":"\n\n-----\nOriginal comment by `AHeinerm` on 10 Nov 2010 at 2:06\n* Added labels: **Type-Defect**, **Priority-High**, **Usability**, **Component-Logic**"}}